From 407cbfa176211b670ea3e15cf5f76c61121b551a Mon Sep 17 00:00:00 2001 From: Zeke Zhang <958414905@qq.com> Date: Sun, 12 Oct 2025 20:09:20 +0800 Subject: [PATCH] fix(filter): update value type to support boolean --- .../client/src/flow/components/filter/VariableFilterItem.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/core/client/src/flow/components/filter/VariableFilterItem.tsx b/packages/core/client/src/flow/components/filter/VariableFilterItem.tsx index 1cc1f4b201d..f812f0a567b 100644 --- a/packages/core/client/src/flow/components/filter/VariableFilterItem.tsx +++ b/packages/core/client/src/flow/components/filter/VariableFilterItem.tsx @@ -31,7 +31,7 @@ const { DateFilterDynamicComponent: DateFilterDynamicComponentLazy } = lazy( export interface VariableFilterItemValue { path: string; operator: string; - value: string; + value: string | boolean; } export interface VariableFilterItemProps { @@ -151,7 +151,7 @@ export const VariableFilterItem: React.FC = observer( value.operator = operatorValue; const cur = operatorMetaList.find((op) => op.value === operatorValue); if (cur?.noValue) { - value.value = ''; + value.value = true; } }, [operatorMetaList, value],