Fix NPE during new site startup (#677)

This commit is contained in:
kac- 2022-06-02 15:51:28 +02:00 committed by GitHub
parent 3e7579b8bb
commit d41e19f3f1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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),