From: kac- Date: Thu, 2 Jun 2022 13:51:28 +0000 (+0200) Subject: Fix NPE during new site startup (#677) X-Git-Url: http://these/git/%22%7Burl%7D/%22https:/image.com/%7B%60%24%7BghostArchiveUrl%7D/%7Brss%7D?a=commitdiff_plain;h=d41e19f3f129477a86d16e52b3ad1587b0a2016d;p=lemmy-ui.git Fix NPE during new site startup (#677) --- diff --git a/src/shared/components/home/home.tsx b/src/shared/components/home/home.tsx index f52efec..6a9365c 100644 --- a/src/shared/components/home/home.tsx +++ b/src/shared/components/home/home.tsx @@ -113,7 +113,7 @@ export class Home extends Component { listingType: getListingTypeFromProps( this.props, ListingType[ - this.isoData.site_res.site_view.site.default_post_listing_type + this.isoData.site_res.site_view?.site.default_post_listing_type ] ), dataType: getDataTypeFromProps(this.props),