From 2c77c2d943464dea4913233da044210c0b9b8d01 Mon Sep 17 00:00:00 2001 From: Paul Elliott Date: Thu, 5 Jun 2025 10:02:06 -0400 Subject: [PATCH] fix(image-stats): load one component images closes #752 --- src/store/image-stats.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/store/image-stats.ts b/src/store/image-stats.ts index 6ce0f83b1..ba316d577 100644 --- a/src/store/image-stats.ts +++ b/src/store/image-stats.ts @@ -28,7 +28,7 @@ export type ImageStats = { function getRangesWithCache(scalars: vtkDataArray) { const numberOfComponents = scalars.getNumberOfComponents(); - return Array.from({ length: numberOfComponents - 1 }, (_, i) => { + return Array.from({ length: numberOfComponents }, (_, i) => { const [min, max] = scalars.getRange(i); return { min, max }; });