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 }
|
value={ defaultItemsPerPage ? defaultItemsPerPage : 12 }
|
||||||
onChange={ ( itemsPerPage ) => {
|
onChange={ ( itemsPerPage ) => {
|
||||||
defaultItemsPerPage = itemsPerPage;
|
defaultItemsPerPage = itemsPerPage;
|
||||||
setAttributes( { defaultItemsPerPage: itemsPerPage } )
|
setAttributes( { defaultItemsPerPage: itemsPerPage } );
|
||||||
setContent();
|
|
||||||
}}
|
}}
|
||||||
min={ 1 }
|
min={ 1 }
|
||||||
max={ tainacan_plugin.api_max_items_per_page ? tainacan_plugin.api_max_items_per_page : 96 }
|
max={ tainacan_plugin.api_max_items_per_page ? tainacan_plugin.api_max_items_per_page : 96 }
|
||||||
|
|
Loading…
Reference in New Issue