mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-05-01 11:19:32 -05:00
Fix: filter out shown custom fields that have been deleted from saved view edit (#7710)
This commit is contained in:
parent
18af513165
commit
82fce24a57
@ -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[]>) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user