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:
parent
c1bd7c89c3
commit
776e32df4c
1 changed files with 1 additions and 0 deletions
|
|
@ -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 ||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue