Skip to content

Commit

Permalink
fix(GlanceVtkJsReader): handle empty lookup tables
Browse files Browse the repository at this point in the history
  • Loading branch information
forrest committed Mar 22, 2022
1 parent 358c114 commit dc6b6e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/io/GlanceVtkJsReader.js
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ function vtkGlanceVtkJsReader(publicAPI, model) {
});

// Update LookupTables with PV ranges
Object.keys(model.lookupTables).forEach((fieldName) => {
Object.keys(model.lookupTables || {}).forEach((fieldName) => {
const lutState = model.lookupTables[fieldName];
const lutProxy = proxyManager.getLookupTable(fieldName);
const lut = lutProxy.getLookupTable();
Expand Down

0 comments on commit dc6b6e7

Please sign in to comment.