Skip to content

Commit e045a33

Browse files
committed
refactor: cleanup unneeded console log
1 parent 42ec785 commit e045a33

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/components/layout/Editor.vue

+4-1
Original file line numberDiff line numberDiff line change
@@ -314,11 +314,14 @@ export default {
314314
if (t) nextTick(() => Object.assign(v.threadCopy, t))
315315
})
316316
317+
watch(() => props.post, p => {
318+
if (p) nextTick(() => Object.assign(v.posting.post, p))
319+
})
320+
317321
// invalidate poll when closing poll creator
318322
watch(() => v.threadCopy?.addPoll, () => { if (!v.threadCopy.addPoll) { v.threadCopy.pollValid = false }})
319323
320324
watch(() => props.showEditor, visible => {
321-
console.log(visible, props.threadEditorMode)
322325
if (visible && props.threadEditorMode) nextTick(() => v.threadTitleEl.focus())
323326
else if (visible && props.postEditorMode) nextTick(() => v.postEditorEl.focus())
324327
else if (visible && props.currentMessage) {

0 commit comments

Comments
 (0)