mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-10-25 15:52:35 -04:00 
			
		
		
		
	Fix dropdown Private items with empty set
This commit is contained in:
		
							parent
							
								
									b34dfcd72f
								
							
						
					
					
						commit
						45ecec5623
					
				| @ -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) | ||||
|     } | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user