renaming block noAnswers to partnersOtherServices

This commit is contained in:
Antoine M 2024-05-13 10:24:08 +02:00
parent cd570b2768
commit 7cf13a29e4

View File

@ -63,14 +63,14 @@ export default function singleConseil() {
const vocabulaireSummaryBlock = document.querySelector('.homegrade-blocks-vocabulaire-summary');
const plusLoinBlock = document.querySelector('#aller-plus-loin');
const helpHomegradeBlock = document.querySelector('#homegrade-vous-aide');
const noAnswers = document.querySelector('#pas-de-reponses');
const partnersOtherServices = document.querySelector('#partenaires-autres-services');
let allBlocks = [];
if (vocabulaireSummaryBlock) allBlocks.push(vocabulaireSummaryBlock);
if (plusLoinBlock) allBlocks.push(plusLoinBlock);
if (helpHomegradeBlock) allBlocks.push(helpHomegradeBlock);
if (noAnswers) allBlocks.push(noAnswers);
if (partnersOtherServices) allBlocks.push(partnersOtherServices);
if (questionsContainerBlocks.length > 0)
allBlocks = [...allBlocks, ...questionsContainerBlocks];
if (chapitresThematiques.length > 0) allBlocks = [...allBlocks, ...chapitresThematiques];