mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 10:04:11 +00:00
[CST-4510] Remove check for entity type param in the import from external source page
This commit is contained in:
@@ -20,6 +20,7 @@ import { fadeIn } from '../../shared/animations/fade';
|
||||
import { PageInfo } from '../../core/shared/page-info.model';
|
||||
import { hasValue, isNotEmpty } from '../../shared/empty.util';
|
||||
import { getFinishedRemoteData } from '../../core/shared/operators';
|
||||
import { NONE_ENTITY_TYPE } from '../../core/shared/item-relationships/item-type.resource-type';
|
||||
|
||||
/**
|
||||
* This component allows to submit a new workspaceitem importing the data from an external source.
|
||||
@@ -127,7 +128,7 @@ export class SubmissionImportExternalComponent implements OnInit, OnDestroy {
|
||||
]).pipe(
|
||||
take(1)
|
||||
).subscribe(([entity, sourceId, query]: [string, string, string]) => {
|
||||
this.reload$.next({entity: entity, query: query, sourceId: sourceId});
|
||||
this.reload$.next({entity: entity || NONE_ENTITY_TYPE, query: query, sourceId: sourceId});
|
||||
this.selectLabel(entity);
|
||||
this.retrieveExternalSources();
|
||||
}));
|
||||
|
Reference in New Issue
Block a user