Skip to content

Commit

Permalink
Fixes switch branch action in graph toolbar
Browse files Browse the repository at this point in the history
  • Loading branch information
eamodio committed Dec 8, 2022
1 parent afbc558 commit 1c475c5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Expand Up @@ -11,6 +11,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p
- Fixes [#2377](https://github.com/gitkraken/vscode-gitlens/issues/2377) - Missing Azure Devops Icon
- Fixes [#2380](https://github.com/gitkraken/vscode-gitlens/issues/2380) - Autolink fails with curly braces
- Fixes [#2381](https://github.com/gitkraken/vscode-gitlens/issues/2381) - can't use scrollbar in 'Commit Graph' view
- Fixes an issue where _Switch to Another Branch..._ doesn't work in the Graph editor toolbar

## [13.1.1] - 2022-11-21

Expand Down
2 changes: 1 addition & 1 deletion src/plus/webviews/graph/graphWebview.ts
Expand Up @@ -1773,7 +1773,7 @@ export class GraphWebview extends WebviewBase<State> {
@debug()
private switchToAnother(item?: GraphItemContext | unknown) {
const ref = this.getGraphItemRef(item);
if (ref == null) return Promise.resolve();
if (ref == null) return GitActions.switchTo(this.repository?.path);

return GitActions.switchTo(ref.repoPath);
}
Expand Down

0 comments on commit 1c475c5

Please sign in to comment.