Don't return empty array for job store getter

job is a single object, it doesn't really make sense to return an array
here.
This commit is contained in:
mvdbeek
2021-04-21 12:04:30 +02:00
parent 11342cc03f
commit 7febfd345f
+1 -1
View File
@@ -8,7 +8,7 @@ import axios from "axios";
const getters = {
job: (state) => (jobId) => {
return state.job[jobId] || [];
return state.job[jobId];
},
};