Skip to content

Commit

Permalink
Added check to make sure a pull request exists
Browse files Browse the repository at this point in the history
  • Loading branch information
DylanDevelops committed Dec 16, 2024
1 parent 9b7d2ed commit c6ea196
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 c6ea196

Please sign in to comment.