From ea305b824c99bde0df2817f5513564f4d13d3653 Mon Sep 17 00:00:00 2001 From: anovazzi1 Date: Thu, 13 Jun 2024 12:01:02 -0300 Subject: [PATCH] chore: Update displayOutputPreview logic in ParameterComponent --- .../GenericNode/components/parameterComponent/index.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/frontend/src/CustomNodes/GenericNode/components/parameterComponent/index.tsx b/src/frontend/src/CustomNodes/GenericNode/components/parameterComponent/index.tsx index 28d6779e7..99b28b7bf 100644 --- a/src/frontend/src/CustomNodes/GenericNode/components/parameterComponent/index.tsx +++ b/src/frontend/src/CustomNodes/GenericNode/components/parameterComponent/index.tsx @@ -91,7 +91,8 @@ export default function ParameterComponent({ const displayOutputPreview = !!flowPool[data.id] && - flowPool[data.id][flowPool[data.id].length - 1]?.valid; + flowPool[data.id][flowPool[data.id].length - 1]?.valid && + flowPool[data.id][flowPool[data.id].length - 1]?.data?.logs[0]?.message; const unknownOutput = !!( flowPool[data.id] &&