From b1100eab7a120006e58e1f55be78bd36a4dbda49 Mon Sep 17 00:00:00 2001 From: kakkokari-gtyih <67428053+kakkokari-gtyih@users.noreply.github.com> Date: Thu, 4 Jul 2024 18:33:51 +0900 Subject: [PATCH] fix --- packages/frontend/src/scripts/get-embed-code.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/frontend/src/scripts/get-embed-code.ts b/packages/frontend/src/scripts/get-embed-code.ts index 9ab4e3d17b..c66deb9cc7 100644 --- a/packages/frontend/src/scripts/get-embed-code.ts +++ b/packages/frontend/src/scripts/get-embed-code.ts @@ -76,10 +76,12 @@ export function copyEmbedCode(entity: EmbeddableEntity, idOrUsername: string, pa copy(getEmbedCode(`/embed/${entity}/${_idOrUsername}`, _params)); os.success(); } else { - os.popup(MkEmbedCodeGenDialog, { + const { dispose } = os.popup(MkEmbedCodeGenDialog, { entity, idOrUsername, params: _params, - }, {}, 'closed'); + }, { + closed: () => dispose(), + }); } }