File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed
services/static-webserver/client/source/class/osparc Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -103,7 +103,7 @@ qx.Class.define("osparc.store.Tags", {
103103 } ,
104104
105105 __addToCache : function ( tagData ) {
106- let tag = this . tagsCached . find ( f => f . getTagId ( ) === tagData [ "tagId " ] ) ;
106+ let tag = this . tagsCached . find ( f => f . getTagId ( ) === tagData [ "id " ] ) ;
107107 if ( tag ) {
108108 const props = Object . keys ( qx . util . PropertyUtil . getProperties ( osparc . data . model . Tag ) ) ;
109109 // put
Original file line number Diff line number Diff line change @@ -20,8 +20,10 @@ qx.Class.define("osparc.ui.basic.Tag", {
2020 construct : function ( tag , filterGroupId ) {
2121 this . base ( arguments ) ;
2222
23- tag . bind ( "name" , this , "value" ) ;
24- tag . bind ( "color" , this , "color" ) ;
23+ if ( tag ) {
24+ tag . bind ( "name" , this , "value" ) ;
25+ tag . bind ( "color" , this , "color" ) ;
26+ }
2527 this . setFont ( "text-11" ) ;
2628
2729 if ( filterGroupId ) {
You can’t perform that action at this time.
0 commit comments