Skip to content

Virtual whiteboard for sketching hand-drawn like diagrams

ignore fileOpen error when user cancels (#1486)

David Luzara4b49ea3504b
diff --git a/src/actions/actionExport.tsx b/src/actions/actionExport.tsx
index ab2fc2edb0..e0d6cc2a47 100644
--- a/src/actions/actionExport.tsx
+++ b/src/actions/actionExport.tsx
@@ -112,6 +112,10 @@ export const actionLoadScene = register({
updateData({ elements: elements, appState: appState });
})
.catch((error) => {
+ // if user cancels, ignore the error
+ if (error.name === "AbortError") {
+ return;
+ }
updateData({ error: error.message });
});
}}