We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 054cee8 commit 4fae622Copy full SHA for 4fae622
src/module/module-collection.js
@@ -49,8 +49,9 @@ export default class ModuleCollection {
49
unregister (path) {
50
const parent = this.get(path.slice(0, -1))
51
const key = path[path.length - 1]
52
+ const child = parent.getChild(key)
53
- if (!parent.getChild(key)) {
54
+ if (!child) {
55
if (__DEV__) {
56
console.warn(
57
`[vuex] trying to unregister module '${key}', which is ` +
@@ -60,7 +61,7 @@ export default class ModuleCollection {
60
61
return
62
}
63
- if (!parent.getChild(key).runtime) {
64
+ if (!child.runtime) {
65
66
67
0 commit comments