@cocreate/utils
Advanced tools
Comparing version 1.12.5 to 1.12.6
@@ -0,1 +1,8 @@ | ||
## [1.12.6](https://github.com/CoCreate-app/CoCreate-utils/compare/v1.12.5...v1.12.6) (2022-11-28) | ||
### Bug Fixes | ||
* if no query.length or no search.length return true ([67d40d1](https://github.com/CoCreate-app/CoCreate-utils/commit/67d40d14d4c2c6c21aa83c6ec0aca575efeaec08)) | ||
## [1.12.5](https://github.com/CoCreate-app/CoCreate-utils/compare/v1.12.4...v1.12.5) (2022-11-28) | ||
@@ -2,0 +9,0 @@ |
{ | ||
"name": "@cocreate/utils", | ||
"version": "1.12.5", | ||
"version": "1.12.6", | ||
"description": "A simple utils component in vanilla javascript. Easily configured using HTML5 attributes and/or JavaScript API.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -255,4 +255,8 @@ (function (root, factory) { | ||
return false; | ||
if (!query.length) | ||
return true; | ||
if (Array.isArray(item)) return false; | ||
if (Array.isArray(item)) | ||
return false; | ||
for (let i = 0; i < query.length; i++) { | ||
@@ -319,3 +323,4 @@ let fieldValue = item[query[i].name]; | ||
const operator = searches['type'] | ||
if (!search.length) | ||
return true | ||
for (var key in data) { | ||
@@ -322,0 +327,0 @@ let value = data[key]; |
90770
966