]> git.ipfire.org Git - thirdparty/vuejs/pinia.git/commitdiff
fix(devtools): root store access #732
authorEduardo San Martin Morote <posva13@gmail.com>
Wed, 27 Oct 2021 08:20:00 +0000 (10:20 +0200)
committerEduardo San Martin Morote <posva13@gmail.com>
Wed, 27 Oct 2021 08:20:00 +0000 (10:20 +0200)
packages/pinia/src/devtools/plugin.ts

index 8f4c2af99be227c4fe767b64510957a4957a93d0..148db2ce05b1f4b6a485289db6527400d1f7415c 100644 (file)
@@ -209,7 +209,8 @@ export function registerPiniaDevtools(app: App, pinia: Pinia) {
               path.unshift('$state')
             }
           } else {
-            path.unshift('state', 'value')
+            // Root access, we can omit the `.value` because the devtools API does it for us
+            path.unshift('state')
           }
           isTimelineActive = false
           payload.set(inspectedStore, path, payload.state.value)