diff --git a/client/src/components/job-detail-lines/job-lines.component.jsx b/client/src/components/job-detail-lines/job-lines.component.jsx index 9d799b991..1b1964664 100644 --- a/client/src/components/job-detail-lines/job-lines.component.jsx +++ b/client/src/components/job-detail-lines/job-lines.component.jsx @@ -296,18 +296,17 @@ export function JobLinesComponent({ onClick={async () => { await deleteJobLine({ variables: { joblineId: record.id }, - // update(cache) { - // cache.modify({ - // id: cache.identify(job), - // fields: { - // joblines(existingJobLines, { readField }) { - // return existingJobLines.filter( - // (jlRef) => record.id !== readField("id", jlRef) - // ); - // }, - // }, - // }); - // }, + update(cache) { + cache.modify({ + fields: { + joblines(existingJobLines, { readField }) { + return existingJobLines.filter( + (jlRef) => record.id !== readField("id", jlRef) + ); + }, + }, + }); + }, }); await axios.post("/job/totalsssu", { id: job.id,