Fixes error on facted search block when changing total items number.
This commit is contained in:
parent
f0e6d4c1ab
commit
9889dddf69
|
@ -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 }
|
||||
|
|
Loading…
Reference in New Issue