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
This commit is contained in:
Lucas Oliveira 2024-12-05 10:57:06 -03:00 committed by GitHub
commit 776e32df4c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -413,6 +413,7 @@ export function validateNode(node: NodeType, edges: Edge[]): Array<string> {
return Object.keys(template).reduce((errors: Array<string>, 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 ||