Skip to content

Commit 63d09ef

Browse files
committed
minor
1 parent 80007d6 commit 63d09ef

File tree

1 file changed

+2
-2
lines changed
  • services/static-webserver/client/source/class/osparc/data/model

1 file changed

+2
-2
lines changed

services/static-webserver/client/source/class/osparc/data/model/StudyUI.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ qx.Class.define("osparc.data.model.StudyUI", {
230230
// check if annotation data is an object or an array
231231
const annotations = this.getAnnotations();
232232
Object.entries(annotationsData).forEach(([annotationId, annotationDiff]) => {
233-
if (annotationsData instanceof Array) {
233+
if (annotationDiff instanceof Array) {
234234
if (annotationDiff.length === 1) {
235235
// it was added
236236
const annotation = this.addAnnotation(annotationDiff[0], annotationId);
@@ -240,7 +240,7 @@ qx.Class.define("osparc.data.model.StudyUI", {
240240
this.removeAnnotation(annotationId);
241241
this.fireDataEvent("annotationRemoved", annotationId);
242242
}
243-
} else if (annotationsData instanceof Object) {
243+
} else if (annotationDiff instanceof Object) {
244244
// it was updated
245245
if (annotationId in annotations) {
246246
const annotation = annotations[annotationId];

0 commit comments

Comments
 (0)