mirror of
https://github.com/langgenius/dify.git
synced 2026-05-02 16:38:04 +08:00
fix: update placeholder handling in ContentItem and remove unused error messages from HumanInputNode
This commit is contained in:
@ -31,9 +31,11 @@ const ContentItem = ({
|
||||
}, [formInputFields, fieldName])
|
||||
|
||||
const placeholder = useMemo(() => {
|
||||
return formInputField?.placeholder.type === 'variable'
|
||||
? resolvedPlaceholderValues?.[fieldName]
|
||||
: formInputField?.placeholder.value
|
||||
if (!formInputField)
|
||||
return ''
|
||||
return formInputField.placeholder.type === 'variable'
|
||||
? resolvedPlaceholderValues?.[fieldName] || ''
|
||||
: formInputField.placeholder.value
|
||||
}, [formInputField, resolvedPlaceholderValues, fieldName])
|
||||
|
||||
if (!isInputField(content)) {
|
||||
|
||||
Reference in New Issue
Block a user