Fix navbar bug. Fixes #289

This commit is contained in:
Dessalines 2021-05-05 10:29:14 -04:00
parent 3bdeacde9a
commit b0e456d754

View file

@ -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;
}