Skip to content

Commit

Permalink
HPCC-32846 ECL Watch v9 fix JS exception on Queries list page
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
jeclrsg committed Oct 22, 2024
1 parent 4a7afe3 commit 058d198
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion esp/src/src-react/components/Queries.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ export const Queries: React.FunctionComponent<QueriesProps> = ({
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 <Icon iconName="Error" />;
}
Expand Down

0 comments on commit 058d198

Please sign in to comment.