Skip to content

Commit 985d0c8

Browse files
committed
fix(vue2): vuex state not updating, closes #1703
1 parent 0cb54b2 commit 985d0c8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/app-backend-vue2/src/plugin.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -418,10 +418,10 @@ function formatStoreForInspectorState (module, getters, path): CustomInspectorSt
418418
getters = !module.namespaced || path === 'root' ? module.context.getters : getters[path]
419419
const gettersKeys = Object.keys(getters)
420420
const storeState: CustomInspectorState = {
421-
state: Object.keys(module.state).map((key) => ({
421+
state: Object.keys(module.context.state).map((key) => ({
422422
key,
423423
editable: true,
424-
value: module.state[key],
424+
value: module.context.state[key],
425425
})),
426426
}
427427

0 commit comments

Comments
 (0)