mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2026-10-10 10:07:15 +00:00
Fix dropdown Private items with empty set
This commit is contained in:
1 parent
b34dfcd72f
commit
45ecec5623
1 file changed
+2
-2
@@ -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)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user