diff --git a/src/app/submission/import-external/submission-import-external.component.ts b/src/app/submission/import-external/submission-import-external.component.ts index 1bc25aae78..9b89dc71cc 100644 --- a/src/app/submission/import-external/submission-import-external.component.ts +++ b/src/app/submission/import-external/submission-import-external.component.ts @@ -180,20 +180,20 @@ export class SubmissionImportExternalComponent implements OnInit, OnDestroy { * Retrieve external source entries. */ private retrieveExternalSources(): void { -/* if (hasValue(this.retrieveExternalSourcesSub)) { + if (hasValue(this.retrieveExternalSourcesSub)) { this.retrieveExternalSourcesSub.unsubscribe(); - }*/ + } this.retrieveExternalSourcesSub = this.reload$.pipe( filter((sourceQueryObject: ExternalSourceData) => isNotEmpty(sourceQueryObject.sourceId) && isNotEmpty(sourceQueryObject.query)), switchMap((sourceQueryObject: ExternalSourceData) => { const query = sourceQueryObject.query; this.routeData = sourceQueryObject; return this.searchConfigService.paginatedSearchOptions.pipe( - tap((v) => this.isLoading$.next(true)), + tap(() => this.isLoading$.next(true)), filter((searchOptions) => searchOptions.query === query), mergeMap((searchOptions) => this.externalService.getExternalSourceEntries(this.routeData.sourceId, searchOptions).pipe( getFinishedRemoteData(), - )), + )) ); } ), diff --git a/src/assets/i18n/en.json5 b/src/assets/i18n/en.json5 index ff51dec16c..0d5c53309b 100644 --- a/src/assets/i18n/en.json5 +++ b/src/assets/i18n/en.json5 @@ -2435,7 +2435,7 @@ "nav.user.description" : "User profile bar", - "none.listelement.badge": "Untyped", + "none.listelement.badge": "Item", "orgunit.listelement.badge": "Organizational Unit",