Fixes error on facted search block when changing total items number.

This commit is contained in:
mateuswetah 2020-11-19 10:09:13 -03:00
parent f0e6d4c1ab
commit 9889dddf69
1 changed files with 1 additions and 2 deletions

View File

@ -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 }