Skip to content

Commit 925ca85

Browse files
committed
fixup! fix(sync): ensure dirty is updated when saving in onDestroy
1 parent 49f056f commit 925ca85

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/components/Editor.vue

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -419,8 +419,9 @@ export default defineComponent({
419419
console.debug(
420420
'No local edits... clearing storage and reloading the editor',
421421
)
422-
this.clearIndexedDb()
423-
this.$emit('reload')
422+
this.clearIndexedDb().then(() => {
423+
this.$emit('reload')
424+
})
424425
}
425426
},
426427
},

0 commit comments

Comments
 (0)