From 7febfd345fe242f92d652371400524028d1e9fc6 Mon Sep 17 00:00:00 2001 From: mvdbeek Date: Wed, 21 Apr 2021 11:55:33 +0200 Subject: [PATCH] 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. --- client/src/store/jobStore.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/store/jobStore.js b/client/src/store/jobStore.js index 9619d85666c..c5e04d60c41 100644 --- a/client/src/store/jobStore.js +++ b/client/src/store/jobStore.js @@ -8,7 +8,7 @@ import axios from "axios"; const getters = { job: (state) => (jobId) => { - return state.job[jobId] || []; + return state.job[jobId]; }, };