mirror of
https://github.com/langgenius/dify.git
synced 2026-05-05 01:48:04 +08:00
Fix type error (#27044)
This commit is contained in:
@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user