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 834dfbe commit 0006ec5Copy full SHA for 0006ec5
src/module.ts
@@ -140,7 +140,7 @@ function extractModulesFromPrototype( cls :VuexModuleConstructor ) {
140
const getters :Record<DictionaryField, any> = {};
141
const descriptors :PropertyDescriptorMap = getDescriptors( cls.prototype );
142
const gettersList :string[] = Object.keys( descriptors ).filter( field => descriptors[ field ].get );
143
- const explicitMutationNames :string[] = cls.prototype.__explicit_mutations_names__;
+ const explicitMutationNames :string[] = cls.prototype.__explicit_mutations_names__ || [];
144
const actionNames = cls.prototype.__actions__ || [];
145
146
for( let field in descriptors ) {
0 commit comments