fix: First auto-save unfocuses document (#1046)
* fix: Autosave unfocuses document * Revert unneeded change * test: le fix * fix: Handle offline state fix: Untitled documents appear with empty titles * fix: Draft bubble roundness (yes, it doesnt belong here but see it, fix it)
This commit is contained in:
@@ -44,7 +44,11 @@ export default class Document extends BaseModel {
|
||||
|
||||
@action
|
||||
updateTitle() {
|
||||
set(this, parseTitle(this.text));
|
||||
const { title, emoji } = parseTitle(this.text);
|
||||
|
||||
if (title) {
|
||||
set(this, { title, emoji });
|
||||
}
|
||||
}
|
||||
|
||||
@computed
|
||||
|
||||
Reference in New Issue
Block a user