From d02d11213e0fd76f9f38f488e8b571b985de0302 Mon Sep 17 00:00:00 2001 From: Jeremy Naccache Date: Wed, 31 May 2023 17:00:18 +0200 Subject: [PATCH] fix(chatModal/index.ts) updated validation condition for required properties of nodes, to allow False values to be accepted --- src/frontend/src/modals/chatModal/index.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/frontend/src/modals/chatModal/index.tsx b/src/frontend/src/modals/chatModal/index.tsx index c6a86daaf..46d62266b 100644 --- a/src/frontend/src/modals/chatModal/index.tsx +++ b/src/frontend/src/modals/chatModal/index.tsx @@ -290,7 +290,9 @@ export default function ChatModal({ errors.concat( template[t].required && template[t].show && - (!template[t].value || template[t].value === "") && + (template[t].value === undefined || + template[t].value === null || + template[t].value === "") && !reactFlowInstance .getEdges() .some(