From 01f545640773f4367fb29a754621e91687f4cf7b Mon Sep 17 00:00:00 2001 From: Braks <78412429+bcakmakoglu@users.noreply.github.com> Date: Thu, 25 Nov 2021 19:30:19 +0100 Subject: [PATCH] fix: setState syntax error Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com> --- src/store/stateStore.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/store/stateStore.ts b/src/store/stateStore.ts index 1fedca35..55c143d0 100644 --- a/src/store/stateStore.ts +++ b/src/store/stateStore.ts @@ -211,7 +211,7 @@ export default (id: string, preloadedState: FlowState) => { if (typeof state.multiSelectionKeyCode !== 'undefined') this.multiSelectionKeyCode = state.multiSelectionKeyCode if (typeof state.snapToGrid !== 'undefined') this.snapToGrid = state.snapToGrid if (typeof state.snapGrid !== 'undefined') this.snapGrid = state.snapGrid - if (typeof !this.isReady) + if (!this.isReady) until(() => this.d3Zoom) .not.toBeUndefined() .then(() => {