Skip to content

Conversation

urbnjamesmi1
Copy link

This PR fixes issue #1850 .

If you call store.hasModule() with an array where none of the modules or submodules are registered in the store, an error is thrown instead of returning false:

TypeError: Cannot read property 'hasChild' of undefined
        at ModuleCollection.isRegistered (/node_modules/vuex/dist/vuex.common.js:291:17)
        at Store.hasModule (/node_modules/vuex/dist/vuex.common.js:611:24)

@urbnjamesmi1 urbnjamesmi1 force-pushed the bug/hasModule-undefined-parent branch from dd5f21d to 93967bc Compare October 16, 2020 22:13
Copy link
Member

@kiaking kiaking left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a lot! Looking nice 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants