From 3eb7b7c06d3876bd5df502aa3822184adc6d46cd Mon Sep 17 00:00:00 2001 From: Kimmo Puputti Date: Wed, 20 Dec 2017 15:41:00 +0200 Subject: [PATCH] Check that categories are enabled --- src/containers/ListingPage/ListingPage.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/containers/ListingPage/ListingPage.js b/src/containers/ListingPage/ListingPage.js index b419ea81..6e25512f 100644 --- a/src/containers/ListingPage/ListingPage.js +++ b/src/containers/ListingPage/ListingPage.js @@ -233,7 +233,7 @@ export class ListingPageComponent extends Component { const { customAttributes } = currentListing.attributes; const category = - customAttributes && customAttributes.category ? ( + config.customAttributes.category && customAttributes && customAttributes.category ? ( {customAttributes.category}