Skip to content

Commit 765d0e0

Browse files
committed
fix(vue2): vuex: missing root node id, closes #1713
1 parent 38077dc commit 765d0e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,7 @@ const VUEX_MODULE_PATH_SEPARATOR_REG = /\[vdt\]/g
390390

391391
function formatStoreForInspectorTree (module, moduleName: string, path: string): CustomInspectorNode {
392392
return {
393-
id: path ?? VUEX_ROOT_PATH,
393+
id: path || VUEX_ROOT_PATH,
394394
// all modules end with a `/`, we want the last segment only
395395
// cart/ -> cart
396396
// nested/cart/ -> cart

0 commit comments

Comments
 (0)