Skip to content

Commit a21a596

Browse files
committed
fix: issue with thread title not showing up in post reply editor
1 parent 552be41 commit a21a596

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/components/layout/Editor.vue

+2-1
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ export default {
268268
/* View Data */
269269
const v = reactive({
270270
isMinimized: true,
271-
threadCopy: props.thread,
271+
threadCopy: props.thread || {},
272272
fullscreen: false,
273273
showFormatting: false,
274274
preview: false,
@@ -307,6 +307,7 @@ export default {
307307
watch(() => props.thread, t => {
308308
v.posting.post.thread_id = t.id
309309
v.posting.post.title = t.title
310+
if (t) nextTick(() => Object.assign(v.threadCopy, t))
310311
})
311312
312313
// invalidate poll when closing poll creator

0 commit comments

Comments
 (0)