Skip to content

A community-supported supercharged document management system: scan, index and archive all your documents

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

shamoon86a540e68e44
diff --git a/src-ui/src/app/components/common/input/drag-drop-select/drag-drop-select.component.ts b/src-ui/src/app/components/common/input/drag-drop-select/drag-drop-select.component.ts
index 3cf0264f9..6225ef3b7 100644
--- a/src-ui/src/app/components/common/input/drag-drop-select/drag-drop-select.component.ts
+++ b/src-ui/src/app/components/common/input/drag-drop-select/drag-drop-select.component.ts
@@ -38,7 +38,9 @@ export class DragDropSelectComponent extends AbstractInputComponent<string[]> {
writeValue(newValue: string[]): void {
super.writeValue(newValue)
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[]>) {