fix: cannot convert undefined or null to object

This commit is contained in:
chenos 2022-04-13 09:23:19 +08:00
parent 13189514ff
commit 9526ce13f2

View File

@ -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];