chore(store-updater): cleanup

This commit is contained in:
moklick
2022-08-06 18:00:07 +02:00
parent 5cf4520992
commit 29013155fd
4 changed files with 11 additions and 9 deletions
@@ -83,7 +83,7 @@ const ZoomPane = ({
d3ZoomHandler: selection.on('wheel.zoom'),
// we need to pass transform because zoom handler is not registered when we set the initial transform
transform: [clampedX, clampedY, clampedZoom],
domNode: selection.node()?.closest('.react-flow') as HTMLElement,
domNode: zoomPane.current.closest('.react-flow') as HTMLDivElement,
});
}
}, []);