fix(#2): Ensure error is caught

This commit is contained in:
Josh Creek
2026-02-22 14:43:56 +00:00
parent 4fe428ef70
commit 9f1f33c372
+6 -1
View File
@@ -1110,7 +1110,12 @@
window.addEventListener('resize', resizeHandler);
};
void initialize();
void initialize().catch((error: unknown) => {
loadError =
error instanceof Error && error.message
? error.message
: 'Failed to initialize network diagram';
});
return () => {
if (resizeHandler) {