Skip to content

Commit

Permalink
Merge branch 'develop' into feature/reo-migration
Browse files Browse the repository at this point in the history
  • Loading branch information
JeltevanBoheemen committed May 27, 2021
2 parents c6e6509 + 13c9b2a commit 88c75e6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions frontend/src/panel-annotation/annotation-edit-view.ts
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ export default class AnnotationEditView extends CompositeView<FlatItem> {
const item = this.model.get('item');
annotation.unset(oa.hasBody).set(oa.hasBody, [cls, item]);
}
annotation.save({patch: true});
annotation.save({ patch: true });
explorerChannel.trigger('annotationEditView:save', this, this.model, newItem);
}

Expand Down Expand Up @@ -220,7 +220,7 @@ export default class AnnotationEditView extends CompositeView<FlatItem> {
changeClass(cls: FlatItem): void {
const annotation = this.model.get('annotation');
annotation.unset(oa.hasBody);
annotation.set(oa.hasBody, cls);
annotation.set(oa.hasBody, cls.underlying);
this.selectClass(cls);
}

Expand All @@ -245,7 +245,7 @@ export default class AnnotationEditView extends CompositeView<FlatItem> {
[skos.prefLabel]: '', // this prevents a failing getLabel
});
this.setItem(item);
this.itemEditor = new ItemEditor({model: new FlatItem(item)});
this.itemEditor = new ItemEditor({ model: new FlatItem(item) });
this.$('.item-picker-container').after(this.itemEditor.el);
return this;
}
Expand Down

0 comments on commit 88c75e6

Please sign in to comment.