Skip to content

Commit

Permalink
use default amount for ui list branches amount (#1021)
Browse files Browse the repository at this point in the history
  • Loading branch information
nopcoder authored Dec 9, 2020
1 parent 6d48ed5 commit d8f2060
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webui/src/components/Tree.js
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ const Tree = ({path, list, repo, refId, diffResults, onNavigate, onDelete, showA
const refreshData = useCallback(() => {
if (refId.type === 'branch') {
if (refId.id === repo.default_branch) {
listBranches(repo.id, "", 2) // trigger list branches to
listBranches(repo.id, "") // trigger list branches to
}
}
}, [repo.id, listBranches, refId, repo.default_branch]);
Expand Down

0 comments on commit d8f2060

Please sign in to comment.