Skip to content

Commit e39406d

Browse files
committed
fix(editor): check for threadCopy existing in watch
1 parent fb28a28 commit e39406d

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
@@ -303,7 +303,7 @@ export default {
303303
})
304304
305305
// invalidate poll when closing poll creator
306-
watch(() => v.threadCopy.addPoll, () => { if (!v.threadCopy.addPoll) { v.threadCopy.pollValid = false }})
306+
watch(() => v.threadCopy?.addPoll, () => { if (!v.threadCopy.addPoll) { v.threadCopy.pollValid = false }})
307307
308308
watch(() => props.showEditor, visible => {
309309
console.log(visible, props.threadEditorMode)

0 commit comments

Comments
 (0)