mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2026-09-09 18:02:54 +00:00
fix navigation for favorites
This commit is contained in:
@@ -85,8 +85,10 @@ export class FavoritesComponent extends PageComponent implements OnInit {
|
|||||||
|
|
||||||
// TODO: rework as it will fail on non-English setups
|
// TODO: rework as it will fail on non-English setups
|
||||||
const isSitePath = (path: PathInfo): boolean => {
|
const isSitePath = (path: PathInfo): boolean => {
|
||||||
return path.elements.some(
|
return (
|
||||||
({ name }: PathElementEntity) => name === 'Sites'
|
path &&
|
||||||
|
path.elements &&
|
||||||
|
path.elements.some(({ name }: PathElementEntity) => name === 'Sites')
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user