From d532c09bcaa0d088d2ef531794bd0be97cc29149 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=81=8B=E3=81=A3=E3=81=93=E3=81=8B=E3=82=8A?= <67428053+kakkokari-gtyih@users.noreply.github.com> Date: Tue, 30 Jul 2024 09:57:01 +0900 Subject: [PATCH] Update antenna-column.vue --- packages/frontend/src/ui/deck/antenna-column.vue | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/packages/frontend/src/ui/deck/antenna-column.vue b/packages/frontend/src/ui/deck/antenna-column.vue index 5e437cb72a5d..987bd4db557e 100644 --- a/packages/frontend/src/ui/deck/antenna-column.vue +++ b/packages/frontend/src/ui/deck/antenna-column.vue @@ -64,14 +64,17 @@ async function setAntenna() { if (canceled || antenna == null) return; if (antenna === '_CREATE_') { - os.popup(defineAsyncComponent(() => import('@/components/MkAntennaEditorDialog.vue')), {}, { - created(newAntenna: MisskeyEntities.Antenna) { + const { dispose } = os.popup(defineAsyncComponent(() => import('@/components/MkAntennaEditorDialog.vue')), {}, { + created: (newAntenna: MisskeyEntities.Antenna) => { antennasCache.delete(); updateColumn(props.column.id, { antennaId: newAntenna.id, }); }, - }, 'closed'); + closed: () => { + dispose(); + }, + }); return; }