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
|
||||
const isSitePath = (path: PathInfo): boolean => {
|
||||
return path.elements.some(
|
||||
({ name }: PathElementEntity) => name === 'Sites'
|
||||
return (
|
||||
path &&
|
||||
path.elements &&
|
||||
path.elements.some(({ name }: PathElementEntity) => name === 'Sites')
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user