mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 10:04:11 +00:00
[CST-4591] Fix issue with navigate when entity type is empty
This commit is contained in:
@@ -92,7 +92,11 @@ export class MyDSpaceNewExternalDropdownComponent implements OnInit, OnDestroy {
|
||||
* Method called on clicking the button 'Import metadata from external source'. It opens the page of the external import.
|
||||
*/
|
||||
openPage(entity: ItemType) {
|
||||
this.router.navigate(['/import-external'], { queryParams: { entity: entity.label } });
|
||||
const params = Object.create({});
|
||||
if (entity) {
|
||||
params.entity = entity.label;
|
||||
}
|
||||
this.router.navigate(['/import-external'], { queryParams: params });
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user