Skip to content

Commit bd351ed

Browse files
authored
Merge pull request #58 from sankhesh/scalars-issue
fix(SliceRepresentation): Ensure that point data exists
2 parents e04846a + 9b2b807 commit bd351ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/SliceRepresentation.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ export default class SliceRepresentation extends Component {
195195
if (this.props.colorDataRange === 'auto') {
196196
this.mapper.update();
197197
const input = this.mapper.getInputData();
198-
const array = input && input.getPointData().getScalars();
198+
const array = input && input.getPointData()?.getScalars();
199199
const dataRange = array && array.getRange();
200200
if (dataRange) {
201201
this.lookupTable.setMappingRange(...dataRange);

0 commit comments

Comments
 (0)