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 { 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) {