diff --git a/app/src/ui/toolbar/branch-dropdown.tsx b/app/src/ui/toolbar/branch-dropdown.tsx index c6885714c7f..7ad501d08b2 100644 --- a/app/src/ui/toolbar/branch-dropdown.tsx +++ b/app/src/ui/toolbar/branch-dropdown.tsx @@ -309,7 +309,9 @@ export class BranchDropdown extends React.Component { 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, })