From: Alec Armbruster <35377827+alectrocute@users.noreply.github.com> Date: Fri, 23 Jun 2023 02:46:38 +0000 (-0400) Subject: Fix inability to go to Home from Settings (#1506) X-Git-Url: http://these/git/%24%7Bsubmission.url%7D?a=commitdiff_plain;h=d127b5626da30d746aaacd37b4a0f7da5fc6ca22;p=lemmy-ui.git Fix inability to go to Home from Settings (#1506) --- diff --git a/src/shared/components/home/home.tsx b/src/shared/components/home/home.tsx index 4a84664..bad771f 100644 --- a/src/shared/components/home/home.tsx +++ b/src/shared/components/home/home.tsx @@ -642,7 +642,7 @@ export class Home extends Component { const siteRes = this.state.siteRes; if (dataType === DataType.Post) { - switch (this.state.postsRes.state) { + switch (this.state.postsRes?.state) { case "loading": return (