We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 552be41 commit a21a596Copy full SHA for a21a596
src/components/layout/Editor.vue
@@ -268,7 +268,7 @@ export default {
268
/* View Data */
269
const v = reactive({
270
isMinimized: true,
271
- threadCopy: props.thread,
+ threadCopy: props.thread || {},
272
fullscreen: false,
273
showFormatting: false,
274
preview: false,
@@ -307,6 +307,7 @@ export default {
307
watch(() => props.thread, t => {
308
v.posting.post.thread_id = t.id
309
v.posting.post.title = t.title
310
+ if (t) nextTick(() => Object.assign(v.threadCopy, t))
311
})
312
313
// invalidate poll when closing poll creator
0 commit comments