Skip to content

Commit 9568ce5

Browse files
[DSC-2079] Fixes undefined / null stream inside dso-edit-metadata.component.ts
1 parent 80b54e3 commit 9568ce5

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/app/dso-shared/dso-edit-metadata/dso-edit-metadata.component.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -197,8 +197,7 @@ export class DsoEditMetadataComponent implements OnInit, OnDestroy {
197197
this.dsoUpdateSubscription = observableCombineLatest([this.route.data, this.route.parent.data]).pipe(
198198
map(([data, parentData]: [Data, Data]) => Object.assign({}, data, parentData)),
199199
tap((data: any) => this.initDSO(data.dso.payload)),
200-
mergeMap(() => this.retrieveDataService()),
201-
withLatestFrom(this.getSecuritySettings()),
200+
mergeMap(() => this.retrieveDataService().pipe(withLatestFrom(this.getSecuritySettings()))),
202201
).subscribe(([dataService, securitySettings]: [UpdateDataService<DSpaceObject>, MetadataSecurityConfiguration]) => {
203202
this.securitySettings$.next(securitySettings);
204203
this.initDataService(dataService);

0 commit comments

Comments
 (0)