Browse Source

Fixes switch branch action in graph toolbar

main
Eric Amodio 2 years ago
parent
commit
1c475c50d1
2 changed files with 2 additions and 1 deletions
  1. +1
    -0
      CHANGELOG.md
  2. +1
    -1
      src/plus/webviews/graph/graphWebview.ts

+ 1
- 0
CHANGELOG.md View File

@ -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

+ 1
- 1
src/plus/webviews/graph/graphWebview.ts View File

@ -1773,7 +1773,7 @@ export class GraphWebview extends WebviewBase {
@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);
}

Loading…
Cancel
Save