Skip to content

Commit 7b1e188

Browse files
committed
Fix a bug removing the group from annotation via the context menu
1 parent 78da09e commit 7b1e188

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

histomicsui/web_client/views/popover/AnnotationContextMenu.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ const AnnotationContextMenu = View.extend({
6161
},
6262
_setStyleDefinition(group) {
6363
const style = this.styles.get({id: group}) || this.styles.get({id: this.parentView._defaultGroup});
64-
const styleAttrs = Object.assign({}, style.toJSON());
64+
const styleAttrs = Object.assign({}, style ? style.toJSON() : {});
6565
delete styleAttrs.id;
6666
let refresh = false;
6767
this.collection.each((element) => { /* eslint-disable backbone/no-silent */

0 commit comments

Comments
 (0)