From 2b8302da9aaba914487197e134933f62e94eb393 Mon Sep 17 00:00:00 2001 From: Abel Rodriguez Date: Thu, 21 Sep 2023 00:16:45 -0500 Subject: [PATCH] reset state when new pipeline is selected --- .../src/components/pipelines/PipelineExecutions.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/spin-observatory-plugin-deck/src/components/pipelines/PipelineExecutions.tsx b/spin-observatory-plugin-deck/src/components/pipelines/PipelineExecutions.tsx index c99a494..8951df0 100644 --- a/spin-observatory-plugin-deck/src/components/pipelines/PipelineExecutions.tsx +++ b/spin-observatory-plugin-deck/src/components/pipelines/PipelineExecutions.tsx @@ -56,6 +56,7 @@ export const PipelineExecutions = ({ setFilteredExecutions([]); setStatusCount(new Map()); setIsLoading(false); + setIsRequestInProgress(false); return; } @@ -71,6 +72,7 @@ export const PipelineExecutions = ({ setFilteredExecutions(filterExecutions(resp)); setStatusCount(getStatusCount(resp)); setIsLoading(false); + setIsRequestInProgress(false); }); }, [pipeline, dateRange.start, dateRange.end]);