Skip to content

Commit

Permalink
fix(Calculator): exception on undefined input data
Browse files Browse the repository at this point in the history
  • Loading branch information
floryst committed Sep 11, 2024
1 parent 1afca48 commit cc47b18
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/Filters/General/Calculator/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ function vtkCalculator(publicAPI, model) {
) => ({
getArrays: (inData) => ({
// don't augment input data array in case of structured input dataset
input: inData[0].isA('vtkImageData')
input: inData[0]?.isA('vtkImageData')
? arrNames.map((x) => ({ location: locn, name: x }))
: publicAPI.augmentInputArrays(
locn,
Expand Down

0 comments on commit cc47b18

Please sign in to comment.