diff --git a/src/frontend/src/CustomNodes/GenericNode/components/parameterComponent/index.tsx b/src/frontend/src/CustomNodes/GenericNode/components/parameterComponent/index.tsx index 418d03b88..73fdd6ff8 100644 --- a/src/frontend/src/CustomNodes/GenericNode/components/parameterComponent/index.tsx +++ b/src/frontend/src/CustomNodes/GenericNode/components/parameterComponent/index.tsx @@ -82,7 +82,9 @@ export default function ParameterComponent({ const [openOutputModal, setOpenOutputModal] = useState(false); const flowPool = useFlowStore((state) => state.flowPool); - const displayOutputPreview = !!flowPool[data.id]; + const displayOutputPreview = + !!flowPool[data.id] && + flowPool[data.id][flowPool[data.id].length - 1]?.valid; const unknownOutput = !!( flowPool[data.id] &&