From f9ec9b9d88fd70c4d1cc733965ffe0a64625ae5c Mon Sep 17 00:00:00 2001 From: Carina Ursu Date: Mon, 9 Oct 2023 13:02:43 -0700 Subject: [PATCH] fix: resume form should support all known types (#819) Signed-off-by: Carina Ursu --- .../src/components/Launch/LaunchForm/useResumeFormState.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/packages/console/src/components/Launch/LaunchForm/useResumeFormState.ts b/packages/console/src/components/Launch/LaunchForm/useResumeFormState.ts index 73770354a..9acde361e 100644 --- a/packages/console/src/components/Launch/LaunchForm/useResumeFormState.ts +++ b/packages/console/src/components/Launch/LaunchForm/useResumeFormState.ts @@ -5,6 +5,7 @@ import { partial } from 'lodash'; import { NodeExecutionIdentifier } from 'models/Execution/types'; import { CompiledNode } from 'models/Node/types'; import { RefObject, useMemo, useRef } from 'react'; +import { LiteralType } from 'models'; import { TaskResumeContext, TaskResumeTypestate, @@ -52,9 +53,9 @@ async function loadInputs({ compiledNode }: TaskResumeContext) { label: 'Signal Input', name: 'signal', required: true, - typeDefinition: getInputDefintionForLiteralType({ - simple: signalType.simple ?? undefined, - }), + typeDefinition: getInputDefintionForLiteralType( + signalType as LiteralType, + ), }, ];