File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
services/static-webserver/client/source/class/osparc/data/model Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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 ] ;
You can’t perform that action at this time.
0 commit comments