diff --git a/client/listeners/index.js b/client/listeners/index.js index ba38e5a7..85bb0e2d 100644 --- a/client/listeners/index.js +++ b/client/listeners/index.js @@ -168,6 +168,10 @@ function getPathListener(panel) { function isNoCurrent(panel) { const infoPanel = Info.panel; + + if (!infoPanel) + return true; + const namePanel = panel.getAttribute('data-name'); const nameInfoPanel = infoPanel.getAttribute('data-name');