diff --git a/src/views/nodes/branchNode.ts b/src/views/nodes/branchNode.ts index 6729ebe..c372b67 100644 --- a/src/views/nodes/branchNode.ts +++ b/src/views/nodes/branchNode.ts @@ -145,10 +145,12 @@ export class BranchNode children.push( new BranchTrackingStatusNode(this.view, this, this.branch, status, 'same', this.root), ); - } else if (status.state.ahead) { - children.push( - new BranchTrackingStatusNode(this.view, this, this.branch, status, 'ahead', this.root), - ); + } else { + if (status.state.ahead) { + children.push( + new BranchTrackingStatusNode(this.view, this, this.branch, status, 'ahead', this.root), + ); + } if (status.state.behind) { children.push(