diff --git a/src/frontend/src/customNodes/genericNode/components/parameterComponent/index.tsx b/src/frontend/src/customNodes/genericNode/components/parameterComponent/index.tsx index 023a12c1a..6a07670df 100644 --- a/src/frontend/src/customNodes/genericNode/components/parameterComponent/index.tsx +++ b/src/frontend/src/customNodes/genericNode/components/parameterComponent/index.tsx @@ -85,8 +85,9 @@ export default function ParameterComponent({ const displayOutputPreview = !!flowPool[data.id]; const unknownOutput = !!( + flowPool[data.id] && flowPool[data.id][flowPool[data.id].length - 1]?.data?.logs[0]?.type === - "unknown" + "unknown" ); const { handleOnNewValue: handleOnNewValueHook } = useHandleOnNewValue(