diff --git a/src/core/SliceRepresentation.js b/src/core/SliceRepresentation.js index 62ee567..a9166ee 100644 --- a/src/core/SliceRepresentation.js +++ b/src/core/SliceRepresentation.js @@ -195,7 +195,7 @@ export default class SliceRepresentation extends Component { if (this.props.colorDataRange === 'auto') { this.mapper.update(); const input = this.mapper.getInputData(); - const array = input && input.getPointData().getScalars(); + const array = input && input.getPointData()?.getScalars(); const dataRange = array && array.getRange(); if (dataRange) { this.lookupTable.setMappingRange(...dataRange);