diff --git a/services/static-webserver/client/source/class/osparc/data/Resources.js b/services/static-webserver/client/source/class/osparc/data/Resources.js index 9d591c0d1ee..5484107fd96 100644 --- a/services/static-webserver/client/source/class/osparc/data/Resources.js +++ b/services/static-webserver/client/source/class/osparc/data/Resources.js @@ -1249,6 +1249,12 @@ qx.Class.define("osparc.data.Resources", { * @param {Object} options Collections of options (pollTask, resolveWResponse, timeout, timeoutRetries) */ fetch: function(resource, endpoint, params = {}, options = {}) { + if (params === null) { + params = {}; + } + if (options === null) { + options = {}; + } return new Promise((resolve, reject) => { if (this.self().resources[resource] == null) { reject(Error(`Error while fetching ${resource}: the resource is not defined`)); diff --git a/services/static-webserver/client/source/class/osparc/desktop/organizations/OrganizationsList.js b/services/static-webserver/client/source/class/osparc/desktop/organizations/OrganizationsList.js index 935c9cfc35b..30797107583 100644 --- a/services/static-webserver/client/source/class/osparc/desktop/organizations/OrganizationsList.js +++ b/services/static-webserver/client/source/class/osparc/desktop/organizations/OrganizationsList.js @@ -180,7 +180,7 @@ qx.Class.define("osparc.desktop.organizations.OrganizationsList", { orgsModel.removeAll(); const useCache = false; - osparc.data.Resources.get("organizations", null, useCache) + osparc.data.Resources.get("organizations", {}, useCache) .then(async respOrgs => { const orgs = respOrgs["organizations"]; const promises = await orgs.map(async org => {