From 7de9c2b5b8188eb89ecdcc42b6305a67a3f60f79 Mon Sep 17 00:00:00 2001 From: Paul Sarando Date: Wed, 26 Jun 2024 20:11:19 -0700 Subject: [PATCH] CORE-1901 Also refresh job history in Analysis Landing page Updated the `refreshAnalysis` callback to also invalidate the analysis history query for that job. --- src/components/analyses/landing/AnalysisSubmissionLanding.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/components/analyses/landing/AnalysisSubmissionLanding.js b/src/components/analyses/landing/AnalysisSubmissionLanding.js index c9a9dfd36..486f9a6db 100644 --- a/src/components/analyses/landing/AnalysisSubmissionLanding.js +++ b/src/components/analyses/landing/AnalysisSubmissionLanding.js @@ -3,6 +3,7 @@ import React from "react"; import { useTranslation } from "i18n"; import { useMutation, useQuery, useQueryClient } from "react-query"; import { + ANALYSIS_HISTORY_QUERY_KEY, ANALYSES_LISTING_QUERY_KEY, cancelAnalysis, extendVICEAnalysisTimeLimit, @@ -162,6 +163,7 @@ export default function AnalysisSubmissionLanding(props) { const refreshAnalysis = () => { queryClient.invalidateQueries([ANALYSES_LISTING_QUERY_KEY, id]); + queryClient.invalidateQueries([ANALYSIS_HISTORY_QUERY_KEY, id]); }; const { isFetching, error: analysisFetchError } = useQuery({