Skip to content

Commit f23ac76

Browse files
committed
Update filebrowser.js
1 parent f46a439 commit f23ac76

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

filebrowser.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1399,8 +1399,7 @@ async function renderBranchMenuHTML(renderAll) {
13991399

14001400
// if clicked on show more button,
14011401
// render all branches
1402-
if (renderAll
1403-
|| (branchResp.length === 2)) {
1402+
if (renderAll) {
14041403

14051404
// run on all branches
14061405
branchResp.forEach(branch => {
@@ -1418,7 +1417,7 @@ async function renderBranchMenuHTML(renderAll) {
14181417

14191418

14201419
// render show more button
1421-
if (!renderAll && branchResp.length > 2) {
1420+
if (!renderAll && branchResp.length > 1) {
14221421

14231422
out += '<div class="icon see-more">' + moreIcon + '<a>see more</a></div>';
14241423

0 commit comments

Comments
 (0)