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 e85f999699..8a1e37ef40 100644 --- a/src/app/submission/form/collection/submission-form-collection.component.ts +++ b/src/app/submission/form/collection/submission-form-collection.component.ts @@ -210,8 +210,8 @@ export class SubmissionFormCollectionComponent implements OnChanges, OnInit { ).pipe( getSucceededRemoteData(), map((collections: RemoteData>>) => collections.payload.page), - filter((collectionData: SearchResult[]) => isNotEmpty(collectionData)), - map((collectionData: SearchResult[]) => { + filter((collectionData: Array>) => isNotEmpty(collectionData)), + map((collectionData: Array>) => { return collectionData.map((collection: SearchResult) => { return { communities: [{ @@ -224,7 +224,6 @@ export class SubmissionFormCollectionComponent implements OnChanges, OnInit { }) ); - this.selectedCollectionName$ = listCollection$.pipe( map((collectionData: CollectionListEntry[]) => collectionData.find((entry: CollectionListEntry) => entry.collection.id === this.selectedCollectionId)), filter((entry: CollectionListEntry) => hasValue(entry.collection)),