Skip to content

A community-supported supercharged document management system: scan, index and archive all your documents

Fix constructor

shamoonfa0c5bde1ea9
diff --git a/src-ui/src/app/utils/custom-field-query-element.ts b/src-ui/src/app/utils/custom-field-query-element.ts
index 8de4edb28..24e3f6856 100644
--- a/src-ui/src/app/utils/custom-field-query-element.ts
+++ b/src-ui/src/app/utils/custom-field-query-element.ts
@@ -103,7 +103,13 @@ export class CustomFieldQueryAtom extends CustomFieldQueryElement {
return super.operator
}
- constructor(queryArray: [number, string, string] = [null, null, null]) {
+ constructor(
+ queryArray: [number, string, string | string[] | number[]] = [
+ null,
+ null,
+ null,
+ ]
+ ) {
super(CustomFieldQueryElementType.Atom)
;[this._field, this._operator, this._value] = queryArray
}