fix: filter does not allow passing empty objects (#3780)
This commit is contained in:
parent
49d3401379
commit
f385c34c72
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user