From: Dessalines Date: Wed, 5 May 2021 14:29:14 +0000 (-0400) Subject: Fix navbar bug. Fixes #289 X-Git-Url: http://these/git/%24%7Bk%5B1%5D.custom_emoji.image_url%7D?a=commitdiff_plain;h=b0e456d754283888e632fda5249583f880c64579;p=lemmy-ui.git Fix navbar bug. Fixes #289 --- 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; }