We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8f66c8b commit d0409cbCopy full SHA for d0409cb
src/plugins/devtool.js
@@ -246,7 +246,7 @@ function transformPathsToObjectTree (getters) {
246
if (path.length > 1) {
247
let target = result
248
const leafKey = path.pop()
249
- for (const p of path) {
+ path.forEach((p) => {
250
if (!target[p]) {
251
target[p] = {
252
_custom: {
@@ -258,7 +258,7 @@ function transformPathsToObjectTree (getters) {
258
}
259
260
target = target[p]._custom.value
261
- }
+ })
262
target[leafKey] = canThrow(() => getters[key])
263
} else {
264
result[key] = canThrow(() => getters[key])
0 commit comments