fix(listeners) isNoCurrent: can not go to root when root is empty

This commit is contained in:
coderaiser 2018-08-23 18:02:18 +03:00
parent 1cdd95e9e1
commit 4e92446a14

View file

@ -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');