From 8c2227132f59c01fffcc210a0afbb3631629fd56 Mon Sep 17 00:00:00 2001 From: Braks <78412429+bcakmakoglu@users.noreply.github.com> Date: Wed, 6 Apr 2022 22:22:31 +0200 Subject: [PATCH] fix(flow): await until d3zoom is rdy --- package/src/store/actions.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/src/store/actions.ts b/package/src/store/actions.ts index 58a48ab4..62c9d5b1 100644 --- a/package/src/store/actions.ts +++ b/package/src/store/actions.ts @@ -308,7 +308,7 @@ export default (state: State, getters: ComputedGetters): Actions => { const option = opts[o as keyof typeof opts] if (!skip.includes(o) && isDef(option)) (state)[o] = option }) - if (!state.paneReady) + if (!state.d3Zoom) until(() => state.d3Zoom) .not.toBeUndefined() .then(() => {