mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-05-01 11:19:32 -05:00
Fix dropdown Private items with empty set
This commit is contained in:
parent
4105dfce8d
commit
36e506c6c5
@ -43,8 +43,8 @@ export class SelectComponent extends AbstractInputComponent<number> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
checkForPrivateItems(value: any) {
|
checkForPrivateItems(value: any) {
|
||||||
if (Array.isArray(value) && value.length > 0) {
|
if (Array.isArray(value)) {
|
||||||
value.forEach((id) => this.checkForPrivateItem(id))
|
if (value.length > 0) value.forEach((id) => this.checkForPrivateItem(id))
|
||||||
} else {
|
} else {
|
||||||
this.checkForPrivateItem(value)
|
this.checkForPrivateItem(value)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user