Skip to content

Build your personal knowledge base with Trilium Notes

Update apps/client/src/widgets/type_widgets/helpers/SvgSplitEditor.tsx

Lucas0cf23c7d7c15
diff --git a/apps/client/src/widgets/type_widgets/helpers/SvgSplitEditor.tsx b/apps/client/src/widgets/type_widgets/helpers/SvgSplitEditor.tsx
index 04fd78829e..9a1c1dd4e7 100644
--- a/apps/client/src/widgets/type_widgets/helpers/SvgSplitEditor.tsx
+++ b/apps/client/src/widgets/type_widgets/helpers/SvgSplitEditor.tsx
@@ -77,7 +77,7 @@ export default function SvgSplitEditor({ ntxId, note, attachmentName, renderSvg,
if (!attachments.find((a) => a.title === `${attachmentName}.svg`)) {
onSave();
}
- });
+ }).catch(e => console.error("Failed to get attachments for SVGSplitEditor", e));
}, [ note, svg, attachmentName, onSave ]);
// Import/export