From dc1945c1398a60aec827e31b45dc1a912153e3b0 Mon Sep 17 00:00:00 2001 From: anovazzi1 Date: Thu, 6 Apr 2023 16:52:25 -0300 Subject: [PATCH] add minor fix for required fields that are not displayed --- src/frontend/src/components/chatComponent/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/frontend/src/components/chatComponent/index.tsx b/src/frontend/src/components/chatComponent/index.tsx index 0d598b300..11516f004 100644 --- a/src/frontend/src/components/chatComponent/index.tsx +++ b/src/frontend/src/components/chatComponent/index.tsx @@ -92,7 +92,7 @@ export default function Chat({ flow, reactFlowInstance }: ChatType) { return Object.keys(template).reduce( (errors: Array, t) => errors.concat( - template[t].required && + (template[t].required && template[t].show) && (!template[t].value || template[t].value === "") && !reactFlowInstance .getEdges()