diff --git a/lib/core/nav/SideNav.js b/lib/core/nav/SideNav.js index 57682c961897..221b19009f4c 100644 --- a/lib/core/nav/SideNav.js +++ b/lib/core/nav/SideNav.js @@ -127,6 +127,10 @@ class SideNav extends React.Component { var toggler = document.querySelector(togglerSelector); var target = document.querySelector(targetSelector); + if (!toggler) { + return; + } + toggler.onclick = function(event) { event.preventDefault();