File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed
ui/src/workflow/nodes/variable-assign-node Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -209,11 +209,14 @@ const nodeCascaderRef = ref()
209209const nodeCascaderRef2 = ref ()
210210const validate = async () => {
211211 // console.log(replyNodeFormRef.value.validate())
212- return Promise . all ( [
212+ let ps = [
213213 replyNodeFormRef .value ?.validate (),
214- ... nodeCascaderRef .value .map ((item : any ) => item .validate ()),
215- ... nodeCascaderRef2 .value .map ((item : any ) => item .validate ())
216- ]).catch ((err : any ) => {
214+ ... nodeCascaderRef .value .map ((item : any ) => item .validate ())
215+ ]
216+ if (nodeCascaderRef2 .value ) {
217+ ps = [... ps , ... nodeCascaderRef .value .map ((item : any ) => item .validate ())]
218+ }
219+ return Promise .all (ps ).catch ((err : any ) => {
217220 return Promise .reject ({ node: props .nodeModel , errMessage: err })
218221 })
219222}
You can’t perform that action at this time.
0 commit comments