Skip to content

Commit e2f4a98

Browse files
committed
minor
1 parent 71cf06f commit e2f4a98

File tree

1 file changed

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

1 file changed

+3
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,9 @@ qx.Class.define("osparc.store.Services", {
154154
// ensure that the promise is immediately stored in the cache before any asynchronous
155155
// operations (like fetch) are executed. This prevents duplicate requests for the
156156
// same key and version when multiple consumers call getService concurrently.
157+
if (!(key in this.__servicesPromisesCached)) {
158+
this.__servicesPromisesCached[key] = {};
159+
}
157160
this.__servicesPromisesCached[key][version] = promise;
158161
return promise;
159162
},

0 commit comments

Comments
 (0)