mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 02:35:49 +00:00
fix(listeners) isNoCurrent: can not go to root when root is empty
This commit is contained in:
parent
1cdd95e9e1
commit
4e92446a14
1 changed files with 4 additions and 0 deletions
|
|
@ -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');
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue