Skip to content

Commit 7be70c8

Browse files
committed
fix(attachments): emit event when creating an attachment
Fixes the attachment showing up in Collectives attachments list immediately. Signed-off-by: Jonas <jonas@freesources.org>
1 parent 03503f6 commit 7be70c8

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/components/Editor/MediaHandler.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,7 @@ export default {
222222
return createAttachment(this.connection, template)
223223
.then((response) => {
224224
this.insertAttachmentPreview(response.data?.id)
225+
emit('text:image-node:add', null)
225226
})
226227
.catch((error) => {
227228
logger.error('Failed to create attachment', { error })

0 commit comments

Comments
 (0)