From 346af57b55cdbf943f924212484d63827be3a710 Mon Sep 17 00:00:00 2001 From: anuoua Date: Thu, 5 Jan 2023 12:46:18 +0800 Subject: [PATCH] fix: filter removeNullConditions (#1329) --- .../src/schema-component/antd/filter/useFilterActionProps.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/core/client/src/schema-component/antd/filter/useFilterActionProps.ts b/packages/core/client/src/schema-component/antd/filter/useFilterActionProps.ts index e8d718b63..a92a9e269 100644 --- a/packages/core/client/src/schema-component/antd/filter/useFilterActionProps.ts +++ b/packages/core/client/src/schema-component/antd/filter/useFilterActionProps.ts @@ -104,7 +104,7 @@ export const useFilterFieldProps = ({ options, service, params }) => { options, onSubmit(values) { // filter parameter for the block - const defaultFilter = removeNullCondition(params.filter); + const defaultFilter = params.filter; // filter parameter for the filter action const filter = removeNullCondition(values?.filter); @@ -126,7 +126,7 @@ export const useFilterFieldProps = ({ options, service, params }) => { } }, onReset() { - const filter = removeNullCondition(params.filter); + const filter = params.filter; service.run({ ...service.params?.[0], filter, page: 1 }); field.title = t('Filter'); },