Fix navbar bug. Fixes #289
This commit is contained in:
parent
3bdeacde9a
commit
b0e456d754
1 changed files with 1 additions and 1 deletions
|
@ -530,7 +530,7 @@ export class Navbar extends Component<NavbarProps, NavbarState> {
|
|||
}
|
||||
|
||||
get canCreateCommunity(): boolean {
|
||||
let adminOnly = this.props.site_res.site_view.site
|
||||
let adminOnly = this.props.site_res.site_view?.site
|
||||
.community_creation_admin_only;
|
||||
return !adminOnly || this.canAdmin;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue