From d706959901c313845aaa016e28f3db113e62aaea Mon Sep 17 00:00:00 2001 From: Philipinho <16838612+Philipinho@users.noreply.github.com> Date: Sun, 8 Jun 2025 19:11:21 -0700 Subject: [PATCH] keep import modal mounted --- .../client/src/features/page/components/page-import-modal.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/client/src/features/page/components/page-import-modal.tsx b/apps/client/src/features/page/components/page-import-modal.tsx index 7031d42c..9eff714a 100644 --- a/apps/client/src/features/page/components/page-import-modal.tsx +++ b/apps/client/src/features/page/components/page-import-modal.tsx @@ -56,6 +56,7 @@ export default function PageImportModal({ yOffset="10vh" xOffset={0} mah={400} + keepMounted={true} > @@ -90,8 +91,6 @@ function ImportFormatSelection({ spaceId, onClose }: ImportFormatSelection) { return; } - onClose(); - try { const importTask = await importZip(selectedFile, spaceId, source); notifications.show({ @@ -104,6 +103,7 @@ function ImportFormatSelection({ spaceId, onClose }: ImportFormatSelection) { }); setFileTaskId(importTask.id); + onClose(); } catch (err) { console.log("Failed to import page", err); notifications.update({