fix(store): setting store state after init

This commit is contained in:
Braks
2022-04-04 21:42:48 +02:00
parent 4644af5736
commit 188156dd0b
3 changed files with 5 additions and 3 deletions
+1 -1
View File
@@ -292,7 +292,7 @@ export default (state: State, getters: ComputedGetters): Actions => {
if (typeof opts.edges !== 'undefined') setEdges(opts.edges)
Object.keys(opts).forEach((o) => {
const option = opts[o as keyof typeof opts]
if (!skip.indexOf(o) && isDef(option)) (<any>state)[o] = option
if (!skip.includes(o) && isDef(option)) (<any>state)[o] = option
})
if (!state.paneReady)
until(() => state.d3Zoom)