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 }; });