From 7be70c8c8d122962b1561d8f8348a7c40dc0f9a0 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 7fc46091426..617792fc214 100644 --- a/src/components/Editor/MediaHandler.vue +++ b/src/components/Editor/MediaHandler.vue @@ -222,6 +222,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 })