mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-18 07:23:03 +00:00
Merged submission module code
This commit is contained in:
@@ -88,8 +88,10 @@ export class Item extends DSpaceObject {
|
||||
*/
|
||||
getBitstreamsByBundleName(bundleName: string): Observable<Bitstream[]> {
|
||||
return this.bitstreams
|
||||
.filter((rd: RemoteData<Bitstream[]>) => rd.hasSucceeded)
|
||||
.map((rd: RemoteData<Bitstream[]>) => rd.payload)
|
||||
.filter((bitstreams: Bitstream[]) => hasValue(bitstreams))
|
||||
.first()
|
||||
.startWith([])
|
||||
.map((bitstreams) => {
|
||||
return bitstreams
|
||||
|
Reference in New Issue
Block a user