Skip to content

Commit 5c31cf2

Browse files
Merge branch 'master' into bugfix/patch-project-in-billable-product
2 parents e047428 + 3a71fde commit 5c31cf2

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

services/static-webserver/client/source/class/osparc/data/Resources.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1249,6 +1249,12 @@ qx.Class.define("osparc.data.Resources", {
12491249
* @param {Object} options Collections of options (pollTask, resolveWResponse, timeout, timeoutRetries)
12501250
*/
12511251
fetch: function(resource, endpoint, params = {}, options = {}) {
1252+
if (params === null) {
1253+
params = {};
1254+
}
1255+
if (options === null) {
1256+
options = {};
1257+
}
12521258
return new Promise((resolve, reject) => {
12531259
if (this.self().resources[resource] == null) {
12541260
reject(Error(`Error while fetching ${resource}: the resource is not defined`));

services/static-webserver/client/source/class/osparc/desktop/organizations/OrganizationsList.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ qx.Class.define("osparc.desktop.organizations.OrganizationsList", {
180180
orgsModel.removeAll();
181181

182182
const useCache = false;
183-
osparc.data.Resources.get("organizations", null, useCache)
183+
osparc.data.Resources.get("organizations", {}, useCache)
184184
.then(async respOrgs => {
185185
const orgs = respOrgs["organizations"];
186186
const promises = await orgs.map(async org => {

0 commit comments

Comments
 (0)