Fix: filter out shown custom fields that have been deleted from saved view edit (#7710)

This commit is contained in:
shamoon
2024-09-15 08:02:38 -07:00
committed by GitHub
parent fb3a881387
commit 86a540e68e

View File

@@ -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[]>) {