From 67dd18397caf40e350da40e0672e500eaa9f338a Mon Sep 17 00:00:00 2001 From: Jason Porter <84735036+jsonporter@users.noreply.github.com> Date: Mon, 13 Sep 2021 08:44:08 -0700 Subject: [PATCH] fix: this is rfc, do not deploy until resolved; details in comments (#172) * fix: this is rfc, do not deploy until resolved; details in comments Signed-off-by: Jason Porter * fix: this is rfc, do not deploy until resolved; details in comments note: deploying with caution; the believe if that it was incorrect to use meta. Signed-off-by: Jason Porter --- src/components/Executions/utils.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/Executions/utils.ts b/src/components/Executions/utils.ts index b8f7bba6c9..b7b7576f1a 100644 --- a/src/components/Executions/utils.ts +++ b/src/components/Executions/utils.ts @@ -112,8 +112,9 @@ export const taskExecutionIsTerminal = (taskExecution: TaskExecution) => taskExecution.closure && terminalTaskExecutionStates.includes(taskExecution.closure.phase); +/** Returns a NodeId from a given NodeExecution */ export function getNodeExecutionSpecId(nodeExecution: NodeExecution): string { - return nodeExecution.metadata?.specNodeId || nodeExecution.id.nodeId; + return nodeExecution.id.nodeId; } interface GetExecutionDurationMSArgs {