mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 10:04:11 +00:00
fix linting issues
This commit is contained in:
@@ -2,5 +2,5 @@ import { Router } from '@angular/router';
|
||||
|
||||
export function currentPath(router: Router) {
|
||||
const urlTree = router.parseUrl(router.url);
|
||||
return '/' + urlTree.root.children['primary'].segments.map(it => it.path).join('/')
|
||||
}
|
||||
return '/' + urlTree.root.children.primary.segments.map((it) => it.path).join('/')
|
||||
}
|
||||
|
Reference in New Issue
Block a user