fix: Catch panZoom errors
This commit is contained in:
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user