Skip to content

Commit

Permalink
Merge pull request #270 from webitel/fix/set-method-in-base-store-module
Browse files Browse the repository at this point in the history
fix: set method in baseStoreModule[WTEL-4777]
  • Loading branch information
dlohvinov authored Aug 14, 2024
2 parents d66efa0 + c41e779 commit 83726a7
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions src/store/BaseStoreModules/BaseStoreModule.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,7 @@ export default class BaseStoreModule {

actions = {};

mutations = {
SET: (state, { path, value }) => {
return set(state, path, value);
},
};
mutations = {};

modules = {};

Expand Down Expand Up @@ -61,7 +57,13 @@ export default class BaseStoreModule {
state: { ...this.state, ...state },
getters: { ...this.getters, ...getters },
actions: { ...this.actions, ...actions },
mutations: { ...this.mutations, ...mutations },
mutations: {
...this.mutations,
...mutations,
SET: (state, { path, value }) => {
return set(state, path, value);
},
},
modules: { ...this.modules, ...modules },
};
}
Expand Down

0 comments on commit 83726a7

Please sign in to comment.