From 2a9fc5f0dc91c126791e6f0d8919b2f63187c0d4 Mon Sep 17 00:00:00 2001 From: Lachlan Kermode Date: Mon, 10 Feb 2020 09:29:24 +1300 Subject: [PATCH] correctly hides categories tabpanel when feature flag is false --- src/components/Toolbar/Layout.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Toolbar/Layout.js b/src/components/Toolbar/Layout.js index adb271b..ffc89b3 100644 --- a/src/components/Toolbar/Layout.js +++ b/src/components/Toolbar/Layout.js @@ -154,7 +154,7 @@ class Toolbar extends React.Component { const tagsLabel = copy[this.props.language].toolbar.tags_label const categoriesLabel = 'Categories' // TODO: const isTags = this.props.tags && this.props.tags.children - const isCategories = true + const isCategories = process.env.features.CATEGORIES_AS_TAGS return (