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