mirror of
https://gitee.com/nocobase/nocobase.git
synced 2024-12-02 04:07:50 +08:00
fix: cannot convert undefined or null to object
This commit is contained in:
parent
13189514ff
commit
9526ce13f2
@ -60,8 +60,7 @@ const isEmpty = (obj) => {
|
||||
};
|
||||
|
||||
const removeNullCondition = (filter) => {
|
||||
const items = flat(filter);
|
||||
console.log('filter', items);
|
||||
const items = flat(filter || {});
|
||||
const values = {};
|
||||
for (const key in items) {
|
||||
const value = items[key];
|
||||
|
Loading…
Reference in New Issue
Block a user