From 1c475c50d1cdc309921692e1d5f4c13505f96a52 Mon Sep 17 00:00:00 2001 From: Eric Amodio Date: Thu, 8 Dec 2022 10:58:06 -0500 Subject: [PATCH] Fixes switch branch action in graph toolbar --- CHANGELOG.md | 1 + src/plus/webviews/graph/graphWebview.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a36128b..fe9f273 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/src/plus/webviews/graph/graphWebview.ts b/src/plus/webviews/graph/graphWebview.ts index d453287..b0084cc 100644 --- a/src/plus/webviews/graph/graphWebview.ts +++ b/src/plus/webviews/graph/graphWebview.ts @@ -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); }