From b0e456d754283888e632fda5249583f880c64579 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Wed, 5 May 2021 10:29:14 -0400 Subject: [PATCH] Fix navbar bug. Fixes #289 --- src/shared/components/navbar.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shared/components/navbar.tsx b/src/shared/components/navbar.tsx index e212d37..6870c17 100644 --- a/src/shared/components/navbar.tsx +++ b/src/shared/components/navbar.tsx @@ -530,7 +530,7 @@ export class Navbar extends Component { } 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; } -- 2.44.1