mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-10 11:33:04 +00:00
CST-9639: Fix error when modal closes
This commit is contained in:
@@ -147,7 +147,7 @@ export class AccessControlFormContainerComponent<T extends DSpaceObject> impleme
|
|||||||
concatMap(() => this.selectableListService.getSelectableList(ITEM_ACCESS_CONTROL_SELECT_BITSTREAMS_LIST_ID)),
|
concatMap(() => this.selectableListService.getSelectableList(ITEM_ACCESS_CONTROL_SELECT_BITSTREAMS_LIST_ID)),
|
||||||
take(1)
|
take(1)
|
||||||
).subscribe((list) => {
|
).subscribe((list) => {
|
||||||
this.state.bitstream.selectedBitstreams = list.selection;
|
this.state.bitstream.selectedBitstreams = list?.selection || [];
|
||||||
this.cdr.detectChanges();
|
this.cdr.detectChanges();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user