Skip to content

Commit 39a48fe

Browse files
Anthony KinseyAnthony Kinsey
authored andcommitted
fix: error in editor
1 parent 31b1d29 commit 39a48fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/layout/Editor.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ export default {
272272
if (v.editMode || v.quoteMode) return
273273
let rawText = v.posting.post.body || v.threadCopy.body || v.newMessage.content.body
274274
v.draftTimeout = setTimeout(() => saveDraft(), 10000)
275-
if (clear || rawText.length && v.oldDraft !== rawText) {
275+
if (clear || rawText?.length && v.oldDraft !== rawText) {
276276
let draftPromise
277277
if (props.postEditorMode || props.threadEditorMode) {
278278
draftPromise = postsApi.updatePostDraft

0 commit comments

Comments
 (0)