Skip to content

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

Fix dropdown Private items with empty set

shamoon45ecec562302
diff --git a/src-ui/src/app/components/common/input/select/select.component.ts b/src-ui/src/app/components/common/input/select/select.component.ts
index 3d81f6f49..73f2a3a8d 100644
--- a/src-ui/src/app/components/common/input/select/select.component.ts
+++ b/src-ui/src/app/components/common/input/select/select.component.ts
@@ -43,8 +43,8 @@ export class SelectComponent extends AbstractInputComponent<number> {
}
checkForPrivateItems(value: any) {
- if (Array.isArray(value) && value.length > 0) {
- value.forEach((id) => this.checkForPrivateItem(id))
+ if (Array.isArray(value)) {
+ if (value.length > 0) value.forEach((id) => this.checkForPrivateItem(id))
} else {
this.checkForPrivateItem(value)
}