mirror of https://github.com/langgenius/dify.git
fix: basic chatbot bool
This commit is contained in:
parent
ca37e304cc
commit
6614e97b53
|
|
@ -56,7 +56,7 @@ const ChatUserInput = ({
|
|||
className='mb-4 last-of-type:mb-0'
|
||||
>
|
||||
<div>
|
||||
{type !== 'boolean' && (
|
||||
{type !== 'checkbox' && (
|
||||
<div className='system-sm-semibold mb-1 flex h-6 items-center gap-1 text-text-secondary'>
|
||||
<div className='truncate'>{name || key}</div>
|
||||
{!required && <span className='system-xs-regular text-text-tertiary'>{t('workflow.panel.optional')}</span>}
|
||||
|
|
@ -99,7 +99,7 @@ const ChatUserInput = ({
|
|||
maxLength={max_length || DEFAULT_VALUE_MAX_LEN}
|
||||
/>
|
||||
)}
|
||||
{type === 'boolean' && (
|
||||
{type === 'checkbox' && (
|
||||
<BoolInput
|
||||
name={name || key}
|
||||
value={!!inputs[key]}
|
||||
|
|
|
|||
Loading…
Reference in New Issue