fix:association select no options when clearing filter (#1866)

* fix: inherit fields filter Foreign Key fields

* fix: association select no options displayed when clearing filter

* fix: association select no options displayed when clearing filter
This commit is contained in:
katherinehhh 2023-05-17 11:37:54 +08:00 committed by GitHub
parent 3b8af6e863
commit 3603b2fe23
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -146,11 +146,13 @@ const InternalRemoteSelect = connect(
const onSearch = async (search) => {
run({
filter: mergeFilter([
{
[fieldNames.label]: {
[operator]: search,
},
},
search
? {
[fieldNames.label]: {
[operator]: search,
},
}
: {},
field.componentProps?.service?.params?.filter || service?.params?.filter,
]),
});