]> Untitled Git - lemmy-ui.git/commitdiff
Fix inability to go to Home from Settings (#1506)
authorAlec Armbruster <35377827+alectrocute@users.noreply.github.com>
Fri, 23 Jun 2023 02:46:38 +0000 (22:46 -0400)
committerGitHub <noreply@github.com>
Fri, 23 Jun 2023 02:46:38 +0000 (02:46 +0000)
src/shared/components/home/home.tsx

index 4a84664bf08d2c0961e409dcc5c04ba443a02ac0..bad771fccf15cfc0e16105113e2373c4afcfe145 100644 (file)
@@ -642,7 +642,7 @@ export class Home extends Component<any, HomeState> {
     const siteRes = this.state.siteRes;
 
     if (dataType === DataType.Post) {
-      switch (this.state.postsRes.state) {
+      switch (this.state.postsRes?.state) {
         case "loading":
           return (
             <h5>