feat(editor): Respect default privacy setting of the account (2nd) (#1733)

Co-authored-by: patak <matias.capeletto@gmail.com>
This commit is contained in:
Peter Budai 2023-04-27 22:41:10 +02:00 committed by GitHub
parent 23c1dfec10
commit a0d036952d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 19 additions and 3 deletions

View file

@ -153,6 +153,10 @@ defineExpose({
editor.value?.commands?.focus?.()
},
})
onDeactivated(() => {
clearEmptyDrafts()
})
</script>
<template>

View file

@ -17,7 +17,7 @@ watchEffect(() => {
draftKey = route.query.draft?.toString() || 'home'
})
onMounted(() => {
onDeactivated(() => {
clearEmptyDrafts()
})
</script>