From 058d198d1642e0d4274ba0620401e38c415998de Mon Sep 17 00:00:00 2001 From: Jeremy Clements <79224539+jeclrsg@users.noreply.github.com> Date: Tue, 22 Oct 2024 11:11:35 -0400 Subject: [PATCH] HPCC-32846 ECL Watch v9 fix JS exception on Queries list page fixes an issue with an uncaught JS exception on the Queries list page, when rows rendered in the list did not contain a "Clusters" property, which was resulting in a white blank page Signed-off-by: Jeremy Clements <79224539+jeclrsg@users.noreply.github.com> --- esp/src/src-react/components/Queries.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/esp/src/src-react/components/Queries.tsx b/esp/src/src-react/components/Queries.tsx index a64847aff70..2a9d05c228d 100644 --- a/esp/src/src-react/components/Queries.tsx +++ b/esp/src/src-react/components/Queries.tsx @@ -134,7 +134,7 @@ export const Queries: React.FunctionComponent = ({ width: 16, sortable: false, formatter: (mixed, row) => { - const mixedStates = row.Clusters.ClusterQueryState[0]?.MixedNodeStates ?? false; + const mixedStates = row?.Clusters?.ClusterQueryState[0]?.MixedNodeStates ?? false; if (mixedStates === true) { return ; }