From 776e32df4c376bc65d1b9d1e8a5c68485acd1a24 Mon Sep 17 00:00:00 2001 From: Lucas Oliveira <62335616+lucaseduoli@users.noreply.github.com> Date: Thu, 5 Dec 2024 10:57:06 -0300 Subject: [PATCH] fix: add condition to not block component from building when input is filled by tool mode (#5039) Fixed frontend blocking build when component is disabled because of tool mode --- src/frontend/src/utils/reactflowUtils.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/frontend/src/utils/reactflowUtils.ts b/src/frontend/src/utils/reactflowUtils.ts index 7386e59ff..94a7be448 100644 --- a/src/frontend/src/utils/reactflowUtils.ts +++ b/src/frontend/src/utils/reactflowUtils.ts @@ -413,6 +413,7 @@ export function validateNode(node: NodeType, edges: Edge[]): Array { return Object.keys(template).reduce((errors: Array, t) => { if ( template[t].required && + !(template[t].tool_mode && node?.data?.node?.tool_mode) && template[t].show && (template[t].value === undefined || template[t].value === null ||