Skip to content

Commit

Permalink
web: Hide delete branch for same branch selected
Browse files Browse the repository at this point in the history
  • Loading branch information
tbantle22 committed Nov 9, 2023
1 parent 3ba06aa commit 99a6cf6
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ function Inner(props: InnerProps) {

if (
!props.branchExists ||
props.params.fromBranchName === defaultBranchName
props.params.fromBranchName === defaultBranchName ||
props.params.fromBranchName === props.params.refName
) {
return null;
}
Expand Down

0 comments on commit 99a6cf6

Please sign in to comment.