fix: filter removeNullConditions (#1329)
This commit is contained in:
parent
72e9533b7d
commit
346af57b55
@ -104,7 +104,7 @@ export const useFilterFieldProps = ({ options, service, params }) => {
|
|||||||
options,
|
options,
|
||||||
onSubmit(values) {
|
onSubmit(values) {
|
||||||
// filter parameter for the block
|
// filter parameter for the block
|
||||||
const defaultFilter = removeNullCondition(params.filter);
|
const defaultFilter = params.filter;
|
||||||
// filter parameter for the filter action
|
// filter parameter for the filter action
|
||||||
const filter = removeNullCondition(values?.filter);
|
const filter = removeNullCondition(values?.filter);
|
||||||
|
|
||||||
@ -126,7 +126,7 @@ export const useFilterFieldProps = ({ options, service, params }) => {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
onReset() {
|
onReset() {
|
||||||
const filter = removeNullCondition(params.filter);
|
const filter = params.filter;
|
||||||
service.run({ ...service.params?.[0], filter, page: 1 });
|
service.run({ ...service.params?.[0], filter, page: 1 });
|
||||||
field.title = t('Filter');
|
field.title = t('Filter');
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user