From d41e19f3f129477a86d16e52b3ad1587b0a2016d Mon Sep 17 00:00:00 2001 From: kac- <pkoppec@gmail.com> Date: Thu, 2 Jun 2022 15:51:28 +0200 Subject: [PATCH] Fix NPE during new site startup (#677) --- src/shared/components/home/home.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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<any, HomeState> { 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), -- 2.44.1