keep import modal mounted

This commit is contained in:
Philipinho
2025-06-08 19:11:21 -07:00
parent 41389a4228
commit d706959901

View File

@ -56,6 +56,7 @@ export default function PageImportModal({
yOffset="10vh" yOffset="10vh"
xOffset={0} xOffset={0}
mah={400} mah={400}
keepMounted={true}
> >
<Modal.Overlay /> <Modal.Overlay />
<Modal.Content style={{ overflow: "hidden" }}> <Modal.Content style={{ overflow: "hidden" }}>
@ -90,8 +91,6 @@ function ImportFormatSelection({ spaceId, onClose }: ImportFormatSelection) {
return; return;
} }
onClose();
try { try {
const importTask = await importZip(selectedFile, spaceId, source); const importTask = await importZip(selectedFile, spaceId, source);
notifications.show({ notifications.show({
@ -104,6 +103,7 @@ function ImportFormatSelection({ spaceId, onClose }: ImportFormatSelection) {
}); });
setFileTaskId(importTask.id); setFileTaskId(importTask.id);
onClose();
} catch (err) { } catch (err) {
console.log("Failed to import page", err); console.log("Failed to import page", err);
notifications.update({ notifications.update({