CST-9639: Fix error when modal closes

This commit is contained in:
Enea Jahollari
2023-06-08 14:52:29 +02:00
parent 16ff75c92e
commit 84f4f017fb

View File

@@ -147,7 +147,7 @@ export class AccessControlFormContainerComponent<T extends DSpaceObject> impleme
concatMap(() => this.selectableListService.getSelectableList(ITEM_ACCESS_CONTROL_SELECT_BITSTREAMS_LIST_ID)),
take(1)
).subscribe((list) => {
this.state.bitstream.selectedBitstreams = list.selection;
this.state.bitstream.selectedBitstreams = list?.selection || [];
this.cdr.detectChanges();
});
}