mirror of
https://github.com/desktop/desktop
synced 2024-09-18 07:32:01 +00:00
Replicate filter logic from BranchesList when determining if the list is empty or not
This commit is contained in:
parent
b4a904eb27
commit
cd80b6de6a
|
@ -109,7 +109,9 @@ export class BranchDropdown extends React.Component<IBranchDropdownProps> {
|
|||
} else if (tip.kind === TipState.Unborn) {
|
||||
title = tip.ref
|
||||
tooltip = `Current branch is ${tip.ref}`
|
||||
canOpen = branchesState.allBranches.length > 0
|
||||
canOpen = branchesState.allBranches.some(
|
||||
b => !b.isDesktopForkRemoteBranch
|
||||
)
|
||||
} else if (tip.kind === TipState.Detached) {
|
||||
title = `On ${tip.currentSha.substr(0, 7)}`
|
||||
tooltip = 'Currently on a detached HEAD'
|
||||
|
|
Loading…
Reference in a new issue