Commit 80c788bb authored by Phil Hughes's avatar Phil Hughes

fixed JS error when no sidebar exists

parent 640cbb00
......@@ -135,6 +135,9 @@ export const documentMouseMove = (e) => {
export default () => {
const sidebar = document.querySelector('.sidebar-top-level-items');
if (!sidebar) return;
const items = [...sidebar.querySelectorAll('.sidebar-top-level-items > li')];
sidebar.addEventListener('mouseleave', () => {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment