File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
services/static-webserver/client/source/class/osparc/store Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -172,6 +172,7 @@ qx.Class.define("osparc.store.Folders", {
172172 __addToCache : function ( folderData ) {
173173 let folder = this . foldersCached . find ( f => f . getFolderId ( ) === folderData [ "folderId" ] && f . getWorkspaceId ( ) === folderData [ "workspaceId" ] ) ;
174174 if ( folder ) {
175+ const props = Object . keys ( qx . util . PropertyUtil . getProperties ( osparc . data . model . Folder ) ) ;
175176 // put
176177 Object . keys ( folderData ) . forEach ( key => {
177178 if ( key === "createdAt" ) {
@@ -180,7 +181,7 @@ qx.Class.define("osparc.store.Folders", {
180181 folder . set ( "lastModified" , new Date ( folderData [ "modifiedAt" ] ) ) ;
181182 } else if ( key === "trashedAt" ) {
182183 folder . set ( "trashedAt" , new Date ( folderData [ "trashedAt" ] ) ) ;
183- } else {
184+ } else if ( props . includes ( key ) ) {
184185 folder . set ( key , folderData [ key ] ) ;
185186 }
186187 } ) ;
You can’t perform that action at this time.
0 commit comments