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 2ad2fc4023
commit 9d20120497

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