diff --git a/client/menu.js b/client/menu.js index 957af2b2..4d4f3e09 100644 --- a/client/menu.js +++ b/client/menu.js @@ -192,7 +192,11 @@ function MenuProto(position) { } function isPath(x, y) { - const panel = Info.panel; + const {panel} = Info; + const isEmptyRoot = !panel; + + if (isEmptyRoot) + return false; const el = document.elementFromPoint(x, y); const elements = panel.querySelectorAll('[data-name="js-path"] *');