From 1f9c4919be999673fe3efa6f2c99dd19600ba541 Mon Sep 17 00:00:00 2001 From: zhaoying Date: Wed, 8 Apr 2026 00:23:43 +0800 Subject: [PATCH] fix(web): filter type operator --- .../ListOperator/FilterConditions/index.tsx | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/web/src/views/Workflow/components/Properties/ListOperator/FilterConditions/index.tsx b/web/src/views/Workflow/components/Properties/ListOperator/FilterConditions/index.tsx index 685f51ff..95c2e113 100644 --- a/web/src/views/Workflow/components/Properties/ListOperator/FilterConditions/index.tsx +++ b/web/src/views/Workflow/components/Properties/ListOperator/FilterConditions/index.tsx @@ -91,7 +91,8 @@ const FilterConditions: FC = ({ const keyFieldValue = currentCondition.key; const keyFieldOption = fileSubVariable.find(option => option.filed === keyFieldValue); const keyFieldType = keyFieldOption?.dataType; - const operatorList = operatorsObj[keyFieldValue === 'type' ? 'type' : keyFieldType || 'default'] || operatorsObj.default || []; + const innerType = variableType?.match(/^array\[(.+)\]$/)?.[1]; + const operatorList = operatorsObj[innerType !== 'file' ? (innerType || 'default') : keyFieldValue === 'type' ? 'type' : keyFieldType || 'default'] || operatorsObj.default || []; return ( = ({ fieldNames={{ value: 'filed', label: 'label' }} onChange={(value) => handleKeyFieldChange(index, value)} variant="borderless" - className="rb:w-full!" + className="rb:w-full! rb:h-7!" /> @@ -129,15 +130,15 @@ const FilterConditions: FC = ({ popupMatchSelectWidth={false} placeholder={t('common.pleaseSelect')} variant="borderless" - className="rb:w-full!" + className="rb:w-full! rb:h-7!" /> {!hideValueField && ( - {variableType?.includes('boolean') - ? + {innerType === 'boolean' + ? : keyFieldValue === 'type' ?