From 17a376590c23479d3d73521f8c66f16eec53eee7 Mon Sep 17 00:00:00 2001 From: Jonas Date: Sun, 30 Aug 2026 12:33:56 +0200 Subject: [PATCH] fix(attachments): emit event when creating an attachment Fixes the attachment showing up in Collectives attachments list immediately. Signed-off-by: Jonas --- src/components/Editor/MediaHandler.vue | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/Editor/MediaHandler.vue b/src/components/Editor/MediaHandler.vue index 2a247d7d0b8..b58d3f5a89e 100644 --- a/src/components/Editor/MediaHandler.vue +++ b/src/components/Editor/MediaHandler.vue @@ -213,6 +213,7 @@ export default { return createAttachment(this.connection, template) .then((response) => { this.insertAttachmentPreview(response.data?.id) + emit('text:image-node:add', null) }) .catch((error) => { logger.error('Failed to create attachment', { error })