diff --git a/web/app/components/workflow/nodes/list-operator/components/filter-condition.tsx b/web/app/components/workflow/nodes/list-operator/components/filter-condition.tsx index 0c261a70d6..01ce5e645d 100644 --- a/web/app/components/workflow/nodes/list-operator/components/filter-condition.tsx +++ b/web/app/components/workflow/nodes/list-operator/components/filter-condition.tsx @@ -11,6 +11,7 @@ import SubVariablePicker from './sub-variable-picker' import Input from '@/app/components/base/input' import { FILE_TYPE_OPTIONS, TRANSFER_METHOD } from '@/app/components/workflow/nodes/constants' import { SimpleSelect as Select } from '@/app/components/base/select' +import BoolValue from '../../../panel/chat-variable-panel/components/bool-value' const optionNameI18NPrefix = 'workflow.nodes.ifElse.optionName' type Props = { @@ -96,14 +97,20 @@ const FilterCondition: FC = ({ placeholder='Select value' /> )} - {!isSelect && ( + {!isSelect && varType !== VarType.boolean && ( handleChange('value')(e.target.value)} /> )} + {!isSelect && varType === VarType.boolean && ( + + )} )} diff --git a/web/app/components/workflow/nodes/list-operator/types.ts b/web/app/components/workflow/nodes/list-operator/types.ts index 770590329a..44203cd0ff 100644 --- a/web/app/components/workflow/nodes/list-operator/types.ts +++ b/web/app/components/workflow/nodes/list-operator/types.ts @@ -14,7 +14,7 @@ export type Limit = { export type Condition = { key: string comparison_operator: ComparisonOperator - value: string | number | string[] + value: string | number | boolean | string[] } export type ListFilterNodeType = CommonNodeType & {