Minor refactoring/simplification of vuex usage.

This commit is contained in:
Dannon Baker
2020-04-15 14:48:35 -04:00
parent b378fd5435
commit cf65e1339b
2 changed files with 2 additions and 3 deletions
@@ -28,9 +28,8 @@ export default {
this.fetchJobDestinationParams(this.jobId);
},
computed: {
...mapGetters(["getJobDestinationParams"]),
jobDestinationParams: function () {
return this.getJobDestinationParams(this.jobId);
return this.$store.getters.jobDestinationParams(this.jobId);
},
},
methods: {
@@ -7,7 +7,7 @@ import { getAppRoot } from "onload/loadConfig";
import axios from "axios";
const getters = {
getJobDestinationParams: (state) => (jobId) => {
jobDestinationParams: (state) => (jobId) => {
return state.jobDestinationParametersByJobId[jobId] || [];
},
};