diff --git a/src/views/gutenberg-blocks/tainacan-facets/facets-list/index.js b/src/views/gutenberg-blocks/tainacan-facets/facets-list/index.js index 5378ce49d..dca27c9ff 100644 --- a/src/views/gutenberg-blocks/tainacan-facets/facets-list/index.js +++ b/src/views/gutenberg-blocks/tainacan-facets/facets-list/index.js @@ -477,15 +477,13 @@ registerBlockType('tainacan/facets-list', { function updateLayout(newLayout) { layout = newLayout; - if (layout == 'grid') - showImage = true; - - if (layout == 'list' || layout == 'cloud') - showImage = false; + if (layout == 'grid' && appendChildTerms == true) { + appendChildTerms = false; + } setAttributes({ layout: layout, - showImage: showImage + appendChildTerms: appendChildTerms }); updateContent(); } @@ -675,7 +673,7 @@ registerBlockType('tainacan/facets-list', { - { parentTerm !== null ? + { parentTerm !== null && layout !== 'grid' && layout !== undefined ?