mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-04-15 10:13:15 -05:00
Fix: filter out shown custom fields that have been deleted from saved view edit (#7710)
This commit is contained in:
parent
fb3a881387
commit
86a540e68e
@ -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