Skip to content

Commit 1cb7040

Browse files
jmannaufloryst
authored andcommitted
fix(DataArray): PR review fixes
1 parent 0973512 commit 1cb7040

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Sources/Common/Core/DataArray/index.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -293,19 +293,17 @@ function vtkDataArray(publicAPI, model) {
293293
const range = {
294294
min,
295295
max,
296-
component: i,
297296
};
298297
ranges.push(range);
299298
}
300299
// where the number of components is greater than 1, the last element in
301300
// the range array is the min,max magnitude of the entire dataset.
302301
if (model.numberOfComponents > 1) {
303-
/** @type {import('../../../interfaces').vtkRange} */
304302
const [min, max] = publicAPI.getRange(-1);
303+
/** @type {import('../../../interfaces').vtkRange} */
305304
const range = {
306305
min,
307306
max,
308-
component: -1,
309307
};
310308
ranges.push(range);
311309
}

0 commit comments

Comments
 (0)