removing unecessary console log

This commit is contained in:
Antoine M 2023-11-27 18:52:04 +01:00
parent f5bb2b672d
commit 1c6517364f

View File

@ -8,7 +8,6 @@ async function fetchMoreThematiquePostDatas(id) {
async function handleLoadMoreClick() { async function handleLoadMoreClick() {
const currentTermId = mainAppJsDynamicDatas.current_thematique.term_id; const currentTermId = mainAppJsDynamicDatas.current_thematique.term_id;
const posts = await fetchMoreThematiquePostDatas(currentTermId); const posts = await fetchMoreThematiquePostDatas(currentTermId);
console.log(posts);
const postsContainer = document.querySelector('.post-question-page__accordeons-container'); const postsContainer = document.querySelector('.post-question-page__accordeons-container');
// console.log(posts); // console.log(posts);
// posts.forEach((post) => { // posts.forEach((post) => {
@ -44,7 +43,6 @@ function createDetailsElement(post) {
} }
export default async function taxonomyThematiqueFaqInit() { export default async function taxonomyThematiqueFaqInit() {
// console.log(mainAppJsDynamicDatas);
const currentQuestionPage = document.querySelector('.post-question-page'); const currentQuestionPage = document.querySelector('.post-question-page');
const filters = document.querySelectorAll('.thematiques-subtaxonomy-links li'); const filters = document.querySelectorAll('.thematiques-subtaxonomy-links li');
if (!currentQuestionPage) return; if (!currentQuestionPage) return;
@ -56,7 +54,6 @@ export default async function taxonomyThematiqueFaqInit() {
filters.forEach((filter) => { filters.forEach((filter) => {
filter.addEventListener('click', (e) => { filter.addEventListener('click', (e) => {
e.preventDefault; e.preventDefault;
console.log(fetchPostDatas);
}); });
}); });
} }