vue-app => store => tour => mutations.js => types.DELETE_TOUR_PACKAGE code example does not update the state from lists. To get lists state updated with Vuex by default binded events use the following code:
[types.DELETE_TOUR_PACKAGE](state, id){
const packageIndex = state.packagesOfSelectedCity.findIndex((pl) => pl.id === id);
state.packagesOfSelectedCity.splice(packageIndex, 1);
},
vue-app => store => tour => mutations.js => types.DELETE_TOUR_PACKAGE code example does not update the state from lists. To get lists state updated with Vuex by default binded events use the following code:
[types.DELETE_TOUR_PACKAGE](state, id){
const packageIndex = state.packagesOfSelectedCity.findIndex((pl) => pl.id === id);
state.packagesOfSelectedCity.splice(packageIndex, 1);
},