Skip to content

Commit 27ed142

Browse files
committed
BUG: Fix updates to point set model representations
1 parent b54267e commit 27ed142

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

js/lib/viewer.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1110,7 +1110,7 @@ const ViewerView = widgets.DOMWidgetView.extend({
11101110
const modelRepresentation = modelRepresentations[index]
11111111
if (representation !== modelRepresentation) {
11121112
modelRepresentations[index] = representation
1113-
this.model.set('point_set_representations', modelRepresentation)
1113+
this.model.set('point_set_representations', modelRepresentations)
11141114
this.model.save_changes()
11151115
}
11161116
}
@@ -1424,7 +1424,6 @@ const ViewerView = widgets.DOMWidgetView.extend({
14241424
if (this.model.hasOwnProperty('itkVtkViewer')) {
14251425
const point_sets = this.model.get('point_sets')
14261426
if (point_sets && !!point_sets.length) {
1427-
console.log(point_set_representations)
14281427
point_set_representations.forEach((representation, index) => {
14291428
switch (representation.toLowerCase()) {
14301429
case 'hidden':

0 commit comments

Comments
 (0)