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