fix: Catch panZoom errors

This commit is contained in:
Sidharth Vinod
2025-10-15 15:58:04 +05:30
parent b1367c2178
commit 48c560c979
+5 -1
View File
@@ -35,7 +35,11 @@
};
const handlePanZoom = (state: State, graphDiv: SVGSVGElement) => {
panZoomState.updateElement(graphDiv, state);
try {
panZoomState.updateElement(graphDiv, state);
} catch (error) {
console.error('PanZoom error:', error);
}
};
const handleStateChange = async (state: ValidatedState) => {