temp publish not check valid

This commit is contained in:
Joel 2024-03-21 15:18:10 +08:00
parent b038b7aa33
commit 93bbb2694f
1 changed files with 4 additions and 0 deletions

View File

@ -22,6 +22,10 @@ const nodeDefault: NodeDefault<ToolNodeType> = {
return nodes
},
checkValid(payload: ToolNodeType, t: any, moreDataForCheckValid: any) {
// TODO: wait for publish add moreDataForCheckValid
if (!moreDataForCheckValid)
return { isValid: true }
const { toolInputsSchema, toolSettingSchema, language } = moreDataForCheckValid
let errorMessages = ''