From a24ba9112e920c8a9c98d3fbd2f82a2a5a029e19 Mon Sep 17 00:00:00 2001 From: Eric Amodio Date: Sun, 4 Jun 2023 19:21:36 -0400 Subject: [PATCH] Avoids using active selection for Graph toolbar --- src/plus/webviews/graph/graphWebview.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/plus/webviews/graph/graphWebview.ts b/src/plus/webviews/graph/graphWebview.ts index a3ea21c..c18ac3b 100644 --- a/src/plus/webviews/graph/graphWebview.ts +++ b/src/plus/webviews/graph/graphWebview.ts @@ -2051,19 +2051,19 @@ export class GraphWebviewProvider implements WebviewProvider { @debug() private fetch(item?: GraphItemContext) { - const ref = this.getGraphItemRef(item, 'branch'); + const ref = item != null ? this.getGraphItemRef(item, 'branch') : undefined; void RepoActions.fetch(this.repository, ref); } @debug() private pull(item?: GraphItemContext) { - const ref = this.getGraphItemRef(item, 'branch'); + const ref = item != null ? this.getGraphItemRef(item, 'branch') : undefined; void RepoActions.pull(this.repository, ref); } @debug() private push(item?: GraphItemContext) { - const ref = this.getGraphItemRef(item); + const ref = item != null ? this.getGraphItemRef(item) : undefined; void RepoActions.push(this.repository, undefined, ref); }