mirror of
https://github.com/docmost/docmost.git
synced 2025-11-16 08:51:10 +10:00
keep import modal mounted
This commit is contained in:
@ -56,6 +56,7 @@ export default function PageImportModal({
|
||||
yOffset="10vh"
|
||||
xOffset={0}
|
||||
mah={400}
|
||||
keepMounted={true}
|
||||
>
|
||||
<Modal.Overlay />
|
||||
<Modal.Content style={{ overflow: "hidden" }}>
|
||||
@ -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({
|
||||
|
||||
Reference in New Issue
Block a user