Skip to content

Commit db10207

Browse files
authored
Update filebrowser.js
1 parent 187d375 commit db10207

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

filebrowser.js

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -980,8 +980,20 @@ async function renderBranchMenuHTML(renderAll) {
980980

981981
}
982982

983-
}
983+
} else if (branchResp) {
984984

985+
if (branchResp.length > 1) {
986+
987+
sidebarBranch.classList.add('visible');
988+
989+
} else {
990+
991+
return;
992+
993+
}
994+
995+
}
996+
985997

986998
// save rendered HTML
987999
let out = '';

0 commit comments

Comments
 (0)