diff --git a/frontend/static/js/index.js b/frontend/static/js/index.js index 303a360..4b7e01d 100644 --- a/frontend/static/js/index.js +++ b/frontend/static/js/index.js @@ -117,7 +117,7 @@ document.addEventListener("DOMContentLoaded", () => { } }); router(location.pathname); - document.querySelector('a[href=\'' + location.pathname + '\']').classList.add('active'); + document.querySelector('a[href=\'' + location.pathname + '\']')?.classList.add('active'); }); export { client, navigateTo }