FIX problem when missing postGridtoolabr action

This commit is contained in:
Antoine M 2026-05-13 18:03:35 +02:00
parent fc44dbe333
commit aa2418b23c

View File

@ -142,10 +142,12 @@ export default function archivesInit() {
} }
handleFilterPostsBy(); handleFilterPostsBy();
if (postGridToolbarActions) {
postGridToolbarActions.addEventListener('click', (e) => { postGridToolbarActions.addEventListener('click', (e) => {
e.preventDefault(); e.preventDefault();
}); });
} }
}
function updatePostCount(count: number) { function updatePostCount(count: number) {
const postCount = document.querySelector('.post-count__count'); const postCount = document.querySelector('.post-count__count');