Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HPCC-32846 ECL Watch v9 fix JS exception on Queries list page #19224

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 <[email protected]>
jeclrsg committed Oct 22, 2024
commit 058d198d1642e0d4274ba0620401e38c415998de
2 changes: 1 addition & 1 deletion esp/src/src-react/components/Queries.tsx
Original file line number Diff line number Diff line change
@@ -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" />;
}