Skip to content

Commit 9ccdeb2

Browse files
committed
fix: improved serchData function
1 parent eabaa3d commit 9ccdeb2

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/utils.js

+7-7
Original file line numberDiff line numberDiff line change
@@ -336,10 +336,10 @@
336336
case 'includes':
337337
if (dataValue.includes(queryValue))
338338
queryStatus = true
339-
if (queryValue === "" && logicalOperator === 'and') {
340-
if (dataValue !== "")
341-
queryStatus = false
342-
}
339+
// if (queryValue === "" && logicalOperator === 'and') {
340+
// if (dataValue !== "")
341+
// queryStatus = false
342+
// }
343343
break;
344344
case '$eq':
345345
if (dataValue == queryValue)
@@ -448,11 +448,11 @@
448448
if (value.indexOf(searchString) > -1)
449449
status = true;
450450

451-
if (search[i].operator == 'or' && status)
451+
if (status)
452452
return true;
453-
454-
if (search[i].operator == 'and' && !status)
453+
else if (search[i].operator == 'and')
455454
return false;
455+
456456

457457
}
458458
}

0 commit comments

Comments
 (0)