diff --git a/packages/webapp/src/components/maps-page/action-dispatcher/export-dialog/index.tsx b/packages/webapp/src/components/maps-page/action-dispatcher/export-dialog/index.tsx index 52a45461..e5595441 100644 --- a/packages/webapp/src/components/maps-page/action-dispatcher/export-dialog/index.tsx +++ b/packages/webapp/src/components/maps-page/action-dispatcher/export-dialog/index.tsx @@ -70,7 +70,7 @@ const ExportDialog = ({ setSubmit(true); }; - const exporter = (formatType: ExportFormat) => { + const exporter = (formatType: ExportFormat): Promise => { let svgElement: Element | null = null; let size; let mindmap: Mindmap; @@ -129,7 +129,10 @@ const ExportDialog = ({ // Clean up ... URL.revokeObjectURL(url); document.body.removeChild(anchor); + }).catch((fail) => { + console.log("Unexpected error during export:" + fail); }); + onClose(); } }, [submit]);