fix: workflow as tool always outdated (#8798)

This commit is contained in:
非法操作 2024-09-26 17:50:36 +08:00 committed by GitHub
parent 008e0efeb0
commit 6df14e50b2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -65,7 +65,7 @@ const WorkflowToolConfigureButton = ({
else { else {
if (item.type === 'paragraph' && param.type !== 'string') if (item.type === 'paragraph' && param.type !== 'string')
return true return true
if (param.type !== item.type && !(param.type === 'string' && item.type === 'paragraph')) if (item.type === 'text-input' && param.type !== 'string')
return true return true
} }
} }