Skip to content

Commit 007cd8a

Browse files
committed
Access main Store
1 parent b725a4c commit 007cd8a

File tree

1 file changed

+3
-3
lines changed
  • services/static-webserver/client/source/class/osparc/store

1 file changed

+3
-3
lines changed

services/static-webserver/client/source/class/osparc/store/Study.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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) {

0 commit comments

Comments
 (0)