File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
services/static-webserver/client/source/class/osparc/store Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -153,13 +153,13 @@ qx.Class.define("osparc.store.Study", {
153153 } ,
154154
155155 setStudyState : function ( studyId , state ) {
156- const studiesWStateCache = this . getStudies ( ) ;
156+ const studiesWStateCache = osparc . store . Store . getInstance ( ) . getStudies ( ) ;
157157 const idx = studiesWStateCache . findIndex ( studyWStateCache => studyWStateCache [ "uuid" ] === studyId ) ;
158158 if ( idx !== - 1 ) {
159159 studiesWStateCache [ idx ] [ "state" ] = state ;
160160 }
161161
162- const currentStudy = this . getCurrentStudy ( ) ;
162+ const currentStudy = osparc . store . Store . getInstance ( ) . getCurrentStudy ( ) ;
163163 if ( currentStudy && currentStudy . getUuid ( ) === studyId ) {
164164 currentStudy . setState ( state ) ;
165165 }
@@ -181,7 +181,7 @@ qx.Class.define("osparc.store.Study", {
181181 delete this . __studiesInDebt [ studyId ] ;
182182 }
183183
184- const studiesWStateCache = this . getStudies ( ) ;
184+ const studiesWStateCache = osparc . store . Store . getInstance ( ) . getStudies ( ) ;
185185 const idx = studiesWStateCache . findIndex ( studyWStateCache => studyWStateCache [ "uuid" ] === studyId ) ;
186186 if ( idx !== - 1 ) {
187187 if ( debt ) {
You can’t perform that action at this time.
0 commit comments