From 9889dddf69fd04efb011c66cecbb0b3f1ea575b2 Mon Sep 17 00:00:00 2001 From: mateuswetah Date: Thu, 19 Nov 2020 10:09:13 -0300 Subject: [PATCH] Fixes error on facted search block when changing total items number. --- .../gutenberg-blocks/tainacan-facets/faceted-search/index.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/views/gutenberg-blocks/tainacan-facets/faceted-search/index.js b/src/views/gutenberg-blocks/tainacan-facets/faceted-search/index.js index 40f5c2019..0fffd3903 100644 --- a/src/views/gutenberg-blocks/tainacan-facets/faceted-search/index.js +++ b/src/views/gutenberg-blocks/tainacan-facets/faceted-search/index.js @@ -724,8 +724,7 @@ registerBlockType('tainacan/faceted-search', { value={ defaultItemsPerPage ? defaultItemsPerPage : 12 } onChange={ ( itemsPerPage ) => { defaultItemsPerPage = itemsPerPage; - setAttributes( { defaultItemsPerPage: itemsPerPage } ) - setContent(); + setAttributes( { defaultItemsPerPage: itemsPerPage } ); }} min={ 1 } max={ tainacan_plugin.api_max_items_per_page ? tainacan_plugin.api_max_items_per_page : 96 }