diff --git a/src/store/modules/job/actions.ts b/src/store/modules/job/actions.ts index 481f3c03..1a1d213c 100644 --- a/src/store/modules/job/actions.ts +++ b/src/store/modules/job/actions.ts @@ -287,9 +287,10 @@ const actions: ActionTree = { if (resp.status === 200 && !hasError(resp) && resp.data.docs?.length > 0) { const total = resp.data.count; let jobs = resp.data.docs.map((job: any) => { + if (job.statusId === 'SERVICE_DRAFT') delete job.runTime; return { ...job, - 'status': job?.statusId + 'status': job.statusId } }) if(payload.viewIndex && payload.viewIndex > 0){ @@ -401,6 +402,7 @@ const actions: ActionTree = { } batchJobEnumIds.map((batchBrokeringJobEnum: any) => { cached[batchBrokeringJobEnum] = responseJobs.filter((job: any) => job.systemJobEnumId === batchBrokeringJobEnum).reduce((batchBrokeringJobs: any, job: any) => { + if (job.statusId === 'SERVICE_DRAFT') delete job.runTime; batchBrokeringJobs.push({ ...job, id: job.jobId, @@ -425,6 +427,7 @@ const actions: ActionTree = { }, cached) responseJobs.filter((job: any) => job.statusId === 'SERVICE_DRAFT').map((job: any) => { + delete job.runTime; return cached[job.systemJobEnumId] = cached[job.systemJobEnumId] ? cached[job.systemJobEnumId] : { ...job, id: job.jobId,