renaming block noAnswers to partnersOtherServices
This commit is contained in:
parent
cd570b2768
commit
7cf13a29e4
|
|
@ -63,14 +63,14 @@ export default function singleConseil() {
|
||||||
const vocabulaireSummaryBlock = document.querySelector('.homegrade-blocks-vocabulaire-summary');
|
const vocabulaireSummaryBlock = document.querySelector('.homegrade-blocks-vocabulaire-summary');
|
||||||
const plusLoinBlock = document.querySelector('#aller-plus-loin');
|
const plusLoinBlock = document.querySelector('#aller-plus-loin');
|
||||||
const helpHomegradeBlock = document.querySelector('#homegrade-vous-aide');
|
const helpHomegradeBlock = document.querySelector('#homegrade-vous-aide');
|
||||||
const noAnswers = document.querySelector('#pas-de-reponses');
|
const partnersOtherServices = document.querySelector('#partenaires-autres-services');
|
||||||
|
|
||||||
let allBlocks = [];
|
let allBlocks = [];
|
||||||
|
|
||||||
if (vocabulaireSummaryBlock) allBlocks.push(vocabulaireSummaryBlock);
|
if (vocabulaireSummaryBlock) allBlocks.push(vocabulaireSummaryBlock);
|
||||||
if (plusLoinBlock) allBlocks.push(plusLoinBlock);
|
if (plusLoinBlock) allBlocks.push(plusLoinBlock);
|
||||||
if (helpHomegradeBlock) allBlocks.push(helpHomegradeBlock);
|
if (helpHomegradeBlock) allBlocks.push(helpHomegradeBlock);
|
||||||
if (noAnswers) allBlocks.push(noAnswers);
|
if (partnersOtherServices) allBlocks.push(partnersOtherServices);
|
||||||
if (questionsContainerBlocks.length > 0)
|
if (questionsContainerBlocks.length > 0)
|
||||||
allBlocks = [...allBlocks, ...questionsContainerBlocks];
|
allBlocks = [...allBlocks, ...questionsContainerBlocks];
|
||||||
if (chapitresThematiques.length > 0) allBlocks = [...allBlocks, ...chapitresThematiques];
|
if (chapitresThematiques.length > 0) allBlocks = [...allBlocks, ...chapitresThematiques];
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user