90873: issue 1380 - Added tests

This commit is contained in:
Alexandre Vryghem
2022-04-27 13:34:23 +02:00
parent d51af2739e
commit 2ad87c50d1
2 changed files with 91 additions and 9 deletions

View File

@@ -141,11 +141,11 @@ export class UploadBitstreamComponent implements OnInit, OnDestroy {
}));
this.selectedBundleId = this.route.snapshot.queryParams.bundle;
if (isNotEmpty(this.selectedBundleId)) {
this.bundleService.findById(this.selectedBundleId).pipe(
this.subs.push(this.bundleService.findById(this.selectedBundleId).pipe(
getFirstSucceededRemoteDataPayload()
).subscribe((bundle: Bundle) => {
this.selectedBundleName = bundle.name;
});
}));
this.setUploadUrl();
}
this.subs.push(bundlesRD$.subscribe());