Skip to content

Commit

Permalink
Merge pull request desktop#19728 from DylanDevelops/dylandev/context-…
Browse files Browse the repository at this point in the history
…menu-fix

Fix Branch List Context Menu Showing Pull Request Option When None Exists
  • Loading branch information
niik authored Dec 18, 2024
2 parents 229095e + c6ea196 commit 8aaddbb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/src/ui/toolbar/branch-dropdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,9 @@ export class BranchDropdown extends React.Component<IBranchDropdownProps> {
name: tip.branch.name,
isLocal: tip.branch.type === BranchType.Local,
onRenameBranch: this.onRenameBranch,
onViewPullRequestOnGitHub: this.onViewPullRequestOnGithub,
onViewPullRequestOnGitHub: this.props.currentPullRequest
? this.onViewPullRequestOnGithub
: undefined,
onDeleteBranch: this.onDeleteBranch,
})

Expand Down

0 comments on commit 8aaddbb

Please sign in to comment.