Fix type error (#27044)

This commit is contained in:
GuanMu
2025-10-17 14:42:58 +08:00
committed by GitHub
parent 6517323add
commit 4f7cb7cd2a
9 changed files with 19 additions and 13 deletions

View File

@@ -10,7 +10,7 @@ export const checkNodeValid = (_payload: LLMNodeType) => {
export const getFieldType = (field: Field) => {
const { type, items } = field
if(field.schemaType === 'file') return 'file'
if(field.schemaType === 'file') return Type.file
if (type !== Type.array || !items)
return type