Skip to content

Commit

Permalink
Update error handle for training data-array
Browse files Browse the repository at this point in the history
  • Loading branch information
JakeWags committed Apr 15, 2024
1 parent c7a9f97 commit 385eb48
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion web/shapeworks/src/components/ShapeViewer/methods.js
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,10 @@ export default {
this.showDifferenceFromMean(mapper, renderer, label, domainIndex)
}
if ([1, 2].includes(deepSSMDataTab.value)) {
const data = shapeData.getPointData().getArrayByName('deepssm_error').getData()
let data;
if (shapeData.getPointData().getArrayByName('deepssm_error')) {
data = shapeData.getPointData().getArrayByName('deepssm_error').getData()
}

if (data) {
let normalizeRange;
Expand Down

0 comments on commit 385eb48

Please sign in to comment.