From f0ce9aa7571fa158a8a81da1565cc11ced9604f1 Mon Sep 17 00:00:00 2001 From: Chip Snyder Date: Fri, 27 Mar 2020 10:14:56 -0400 Subject: [PATCH] Disable Category selection in release --- packages/block-library/src/latest-posts/edit.native.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/block-library/src/latest-posts/edit.native.js b/packages/block-library/src/latest-posts/edit.native.js index 5b37ad2a530a81..37af86b2036a3f 100644 --- a/packages/block-library/src/latest-posts/edit.native.js +++ b/packages/block-library/src/latest-posts/edit.native.js @@ -185,7 +185,10 @@ class LatestPostsEdit extends Component { } onOrderChange={ this.onSetOrder } onOrderByChange={ this.onSetOrderBy } - onCategoryChange={ this.onSetCategories } + onCategoryChange={ + // eslint-disable-next-line no-undef + __DEV__ ? this.onSetCategories : undefined + } onNumberOfItemsChange={ this.onSetPostsToShow } />