Fix the build.
This commit is contained in:
parent
d9d86577ff
commit
ffb7ec2543
|
@ -116,7 +116,7 @@ export default createWidget('hamburger-menu', {
|
|||
links.push({ route: 'users', className: 'user-directory-link', label: 'directory.title' });
|
||||
}
|
||||
|
||||
if (this.siteSettings.enable_group_directory || this.currentUser.staff) {
|
||||
if (this.siteSettings.enable_group_directory || (this.currentUser && this.currentUser.staff)) {
|
||||
links.push({ route: 'groups', className: 'groups-link', label: 'groups.index.title' });
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue