dont use mapActions

This commit is contained in:
Mathieu Jaumotte 2021-05-21 16:54:25 +02:00
parent c1e1f65715
commit 21f75c8a63

View File

@ -28,7 +28,7 @@
<script>
import VueMultiselect from 'vue-multiselect';
import { getSocialIssues } from '../api';
import { mapState, mapActions } from 'vuex';
import { mapState } from 'vuex';
export default {
name: "SocialIssue",
@ -54,7 +54,10 @@ export default {
resolve();
})).catch(error => this.$store.commit('catchError', error));
},
...mapActions(['updateSocialIssues'])
updateSocialIssues(value) {
console.log('@@@ CHANGE value', value);
this.$store.dispatch('updateSocialIssues', value);
}
}
}
</script>