From 16fd41fe6f6b762d60ef6bd975d3b7bb7ee9e2d9 Mon Sep 17 00:00:00 2001 From: Juntao Wang Date: Fri, 7 Jun 2024 14:26:56 -0400 Subject: [PATCH] Fix label for runs produces by a deleted recurring run --- .../concepts/pipelines/context/useJobRelatedInformation.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/frontend/src/concepts/pipelines/context/useJobRelatedInformation.ts b/frontend/src/concepts/pipelines/context/useJobRelatedInformation.ts index 8f87b237eb..c7b2a0cc4a 100644 --- a/frontend/src/concepts/pipelines/context/useJobRelatedInformation.ts +++ b/frontend/src/concepts/pipelines/context/useJobRelatedInformation.ts @@ -46,6 +46,10 @@ const useJobRelatedInformation = ( .catch((e) => { // eslint-disable-next-line no-console console.error('Could not fetch job reference', e); + setJobStorage((jobState) => ({ + ...jobState, + [jobId]: { loading: false, data: null }, + })); loadedIds.current = loadedIds.current.filter((i) => i !== jobId); return null; });