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 removeNullCondition = (filter) => {
|
||||||
const items = flat(filter);
|
const items = flat(filter || {});
|
||||||
console.log('filter', items);
|
|
||||||
const values = {};
|
const values = {};
|
||||||
for (const key in items) {
|
for (const key in items) {
|
||||||
const value = items[key];
|
const value = items[key];
|
||||||
|
Loading…
Reference in New Issue
Block a user