]> Untitled Git - lemmy-ui.git/commitdiff
Fix issue with site view for initial site setup.
authorDessalines <tyhou13@gmx.com>
Tue, 19 Jan 2021 15:34:04 +0000 (10:34 -0500)
committerDessalines <tyhou13@gmx.com>
Tue, 19 Jan 2021 15:34:04 +0000 (10:34 -0500)
src/shared/components/main.tsx

index 173fa0b96282ff6ef9992c384a31cb3e121cf1a0..4f0587b6ae2ebd3e76232510a149e73ec9cf4ac0 100644 (file)
@@ -267,7 +267,7 @@ export class Main extends Component<any, MainState> {
           title={this.documentTitle}
           path={this.context.router.route.match.url}
         />
-        {this.state.siteRes.site_view.site && (
+        {this.state.siteRes.site_view?.site && (
           <div class="row">
             <main role="main" class="col-12 col-md-8">
               {this.posts()}