From 841981454ab9640f320a7708333b8857412bf173 Mon Sep 17 00:00:00 2001 From: Abel Rodriguez Date: Thu, 15 Jun 2023 12:20:09 -0500 Subject: [PATCH] [CN-2388] set status count default value --- .../src/components/pipelines/PipelineExecutions.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spin-observatory-plugin-deck/src/components/pipelines/PipelineExecutions.tsx b/spin-observatory-plugin-deck/src/components/pipelines/PipelineExecutions.tsx index e9ba84b..f585e82 100644 --- a/spin-observatory-plugin-deck/src/components/pipelines/PipelineExecutions.tsx +++ b/spin-observatory-plugin-deck/src/components/pipelines/PipelineExecutions.tsx @@ -26,7 +26,7 @@ interface IPipelineExecutionsProps { export const PipelineExecutions = ({ appName, pipeline, parameters, statuses, dateRange, onStatusChange }: IPipelineExecutionsProps) => { const [executions, setExecutions] = useState([]); const [filteredExecutions, setFilteredExecutions] = useState([]); - const [statusCount, setStatusCount] = useState>(); + const [statusCount, setStatusCount] = useState>(new Map()); const [isLoading, setIsLoading] = useState(true); const styles = useStyles();