Skip to content

Commit 3ad2c1c

Browse files
committed
Fixes commit graph minimap only showing spinner on repos with no commits
Fixes #4741
1 parent b3d66d8 commit 3ad2c1c

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p
66

77
## [Unreleased]
88

9+
### Fixed
10+
11+
- Fixes issue in the _Commit Graph_ minimap where it only shows a spinner when the repo has no commits [#4741](https://github.com/gitkraken/vscode-gitlens/issues/4741)
12+
913
## [17.9.0] - 2026-01-13
1014

1115
### Added

src/webviews/apps/plus/graph/minimap/minimap.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -727,7 +727,8 @@ export class GlGraphMinimap extends GlElement {
727727
@debug({ singleLine: true })
728728
private async loadChartCore() {
729729
if (!this.data?.size) {
730-
this.spinner.setAttribute('aria-hidden', 'false');
730+
// Hide spinner if data is an empty Map (no commits), show if data is undefined (still loading)
731+
this.spinner.setAttribute('aria-hidden', this.data != null ? 'true' : 'false');
731732

732733
this._chart?.destroy();
733734
this._chart = undefined!;

0 commit comments

Comments
 (0)