mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-10-30 03:56:23 -05:00 
			
		
		
		
	Fix: filter out shown custom fields that have been deleted from saved view edit (#7710)
This commit is contained in:
		| @@ -38,7 +38,9 @@ export class DragDropSelectComponent extends AbstractInputComponent<string[]> { | |||||||
|   writeValue(newValue: string[]): void { |   writeValue(newValue: string[]): void { | ||||||
|     super.writeValue(newValue) |     super.writeValue(newValue) | ||||||
|     this.selectedItems = |     this.selectedItems = | ||||||
|       newValue?.map((id) => this.items.find((i) => i.id === id)) ?? [] |       newValue | ||||||
|  |         ?.map((id) => this.items.find((i) => i.id === id)) | ||||||
|  |         .filter((item) => item) ?? [] | ||||||
|   } |   } | ||||||
|  |  | ||||||
|   public drop(event: CdkDragDrop<string[]>) { |   public drop(event: CdkDragDrop<string[]>) { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 shamoon
					shamoon