fix: filter does not allow passing empty objects (#3780)

This commit is contained in:
katherinehhh 2024-03-21 16:32:51 +08:00 committed by GitHub
parent 49d3401379
commit f385c34c72
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -349,7 +349,7 @@ export const useParamsFromRecord = () => {
if (record.__collection && collectionField && !['oho', 'm2o', 'obo'].includes(collectionField.interface)) {
obj['targetCollection'] = record.__collection;
}
if (!filterByTk) {
if (!filterByTk && Object.keys(filter).length > 0) {
obj['filter'] = filter;
}
return obj;