From 11a86c3756ec92d51ab7041cd32c516be583c7a5 Mon Sep 17 00:00:00 2001 From: Alexandre Vryghem Date: Fri, 19 May 2023 14:59:23 +0200 Subject: [PATCH] Fixed switch collection in submission form not working anymore --- .../form/collection/submission-form-collection.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/submission/form/collection/submission-form-collection.component.ts b/src/app/submission/form/collection/submission-form-collection.component.ts index 6cdd95a5de..6a9d799ae2 100644 --- a/src/app/submission/form/collection/submission-form-collection.component.ts +++ b/src/app/submission/form/collection/submission-form-collection.component.ts @@ -168,7 +168,7 @@ export class SubmissionFormCollectionComponent implements OnChanges, OnInit { }) ).subscribe((submissionObject: SubmissionObject) => { this.selectedCollectionId = event.collection.id; - this.selectedCollectionName$ = observableOf(this.dsoNameService.getName(event.collection)); + this.selectedCollectionName$ = observableOf(event.collection.name); this.collectionChange.emit(submissionObject); this.submissionService.changeSubmissionCollection(this.submissionId, event.collection.id); this.processingChange$.next(false);