Closed go4cas closed 6 years ago
When adding actions or mutations to the Vapi instance, works fine. But, when trying to add a getter, using this: positionStore.getters.getField = getField;, I get this error: "Cannot set property 'getField' of undefined". Am I missing something?
getter
positionStore.getters.getField = getField;
Okay, doing this solved the issue:
positionStore.getters = { getField, };
When adding actions or mutations to the Vapi instance, works fine. But, when trying to add a
getter
, using this:positionStore.getters.getField = getField;
, I get this error: "Cannot set property 'getField' of undefined". Am I missing something?