fixing javascript error on other pages than news
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
70e328b5a9
commit
7cb95c47de
|
|
@ -192,6 +192,9 @@ function loadMoreNewsInit() {
|
|||
}
|
||||
|
||||
export default function archiveNewsInit() {
|
||||
const filterNewsToolbar = document.querySelector('.filters-toolbar--archive-news');
|
||||
if (!filterNewsToolbar) return;
|
||||
|
||||
filterNewsInit();
|
||||
loadMoreNewsInit();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user