Skip to content

Commit cc47b18

Browse files
committed
fix(Calculator): exception on undefined input data
1 parent 1afca48 commit cc47b18

File tree

1 file changed

+1
-1
lines changed
  • Sources/Filters/General/Calculator

1 file changed

+1
-1
lines changed

Sources/Filters/General/Calculator/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ function vtkCalculator(publicAPI, model) {
4747
) => ({
4848
getArrays: (inData) => ({
4949
// don't augment input data array in case of structured input dataset
50-
input: inData[0].isA('vtkImageData')
50+
input: inData[0]?.isA('vtkImageData')
5151
? arrNames.map((x) => ({ location: locn, name: x }))
5252
: publicAPI.augmentInputArrays(
5353
locn,

0 commit comments

Comments
 (0)