fixing some blocks intersection observation
This commit is contained in:
parent
3d5fca4d90
commit
a6515728f8
|
|
@ -61,10 +61,11 @@ export default function singleConseil() {
|
|||
const plusLoinBlock = document.querySelector('#aller-plus-loin');
|
||||
let allBlocks = [];
|
||||
|
||||
if (chapitresThematiques) allBlocks = [...chapitresThematiques];
|
||||
if (questionsContainerBlocks) allBlocks = [...questionsContainerBlocks];
|
||||
if (vocabulaireSummaryBlock) allBlocks.push(vocabulaireSummaryBlock);
|
||||
if (plusLoinBlock) allBlocks.push(plusLoinBlock);
|
||||
if (questionsContainerBlocks.length > 0)
|
||||
allBlocks = [...allBlocks, ...questionsContainerBlocks];
|
||||
if (chapitresThematiques.length > 0) allBlocks = [...allBlocks, ...chapitresThematiques];
|
||||
|
||||
return allBlocks;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user