From 0895bb493d8a743d037c070bc3235f4cd7ae905a Mon Sep 17 00:00:00 2001 From: Olga Nad Date: Tue, 19 Jul 2022 12:01:00 -0500 Subject: [PATCH] fix: make sure groups used in graph aren't undefined Signed-off-by: Olga Nad --- .../console/src/components/Executions/nodeExecutionQueries.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/zapp/console/src/components/Executions/nodeExecutionQueries.ts b/packages/zapp/console/src/components/Executions/nodeExecutionQueries.ts index 1db75713e..f31766060 100644 --- a/packages/zapp/console/src/components/Executions/nodeExecutionQueries.ts +++ b/packages/zapp/console/src/components/Executions/nodeExecutionQueries.ts @@ -335,7 +335,7 @@ export function useAllChildNodeExecutionGroupsQuery( return groups.some((group) => { // non-empty groups are wrapped in array const unwrappedGroup = Array.isArray(group) ? group[0] : group; - if (unwrappedGroup.nodeExecutions?.length > 0) { + if (unwrappedGroup?.nodeExecutions?.length > 0) { /* Return true is any executions are not yet terminal (ie, they can change) */ return unwrappedGroup.nodeExecutions.some((ne) => { return !nodeExecutionIsTerminal(ne);