diff --git a/web/app/components/app/configuration/config-var/index.tsx b/web/app/components/app/configuration/config-var/index.tsx index 2bd5d9dc25..8d1f4a8eff 100644 --- a/web/app/components/app/configuration/config-var/index.tsx +++ b/web/app/components/app/configuration/config-var/index.tsx @@ -190,7 +190,7 @@ const ConfigVar: FC = ({ promptVariables, readonly, onPromptVar const handleConfig = ({ key, type, index, name, config, icon, icon_background }: ExternalDataToolParams) => { // setCurrKey(key) setCurrIndex(index) - if (type !== 'string' && type !== 'paragraph' && type !== 'select' && type !== 'number' && type !== 'boolean') { + if (type !== 'string' && type !== 'paragraph' && type !== 'select' && type !== 'number' && type !== 'checkbox') { handleOpenExternalDataToolModal({ key, type, index, name, config, icon, icon_background }, promptVariables) return } diff --git a/web/app/components/app/configuration/prompt-value-panel/index.tsx b/web/app/components/app/configuration/prompt-value-panel/index.tsx index 13a76260af..e88268ba40 100644 --- a/web/app/components/app/configuration/prompt-value-panel/index.tsx +++ b/web/app/components/app/configuration/prompt-value-panel/index.tsx @@ -110,7 +110,7 @@ const PromptValuePanel: FC = ({ className='mb-4 last-of-type:mb-0' >
- {type !== 'boolean' && ( + {type !== 'checkbox' && (
{name || key}
{!required && {t('workflow.panel.optional')}} @@ -154,7 +154,7 @@ const PromptValuePanel: FC = ({ maxLength={max_length || DEFAULT_VALUE_MAX_LEN} /> )} - {type === 'boolean' && ( + {type === 'checkbox' && (