fix(react): window bug

This commit is contained in:
moklick
2024-06-20 15:53:35 +02:00
parent 7338eab8c9
commit 71db83761c
4 changed files with 7 additions and 3 deletions
@@ -28,7 +28,7 @@ export type FlowRendererProps<NodeType extends Node = Node> = Omit<
children: ReactNode;
};
const win = typeof window === 'undefined' ? window : undefined;
const win = typeof window !== 'undefined' ? window : undefined;
const selector = (s: ReactFlowState) => {
return { nodesSelectionActive: s.nodesSelectionActive, userSelectionActive: s.userSelectionActive };