gh-as-db 1.1.0 → 1.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ui/collection.js +3 -0
- package/package.json +1 -1
package/dist/ui/collection.js
CHANGED
|
@@ -139,6 +139,9 @@ export class Collection {
|
|
|
139
139
|
case "lte":
|
|
140
140
|
return val <= filter.value;
|
|
141
141
|
case "contains":
|
|
142
|
+
if (Array.isArray(val)) {
|
|
143
|
+
return val.includes(filter.value);
|
|
144
|
+
}
|
|
142
145
|
return (typeof val === "string" && val.includes(filter.value));
|
|
143
146
|
case "in":
|
|
144
147
|
return Array.isArray(filter.value) && filter.value.includes(val);
|