Skip to content

Commit

Permalink
CORE-1901 Also refresh job history in Analysis Landing page
Browse files Browse the repository at this point in the history
Updated the `refreshAnalysis` callback to also invalidate the analysis
history query for that job.
  • Loading branch information
psarando committed Dec 13, 2024
1 parent 1a5c33f commit 7de9c2b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/analyses/landing/AnalysisSubmissionLanding.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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({
Expand Down

0 comments on commit 7de9c2b

Please sign in to comment.