Skip to content

Commit 7159b73

Browse files
committed
[skip ci] minor
1 parent 60e0e08 commit 7159b73

File tree

1 file changed

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

1 file changed

+4
-3
lines changed

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -235,13 +235,14 @@ qx.Class.define("osparc.store.Study", {
235235
});
236236
},
237237

238-
updateSelectedPricingUnit: function(studyId, nodeId, planId, selectedUnit) {
238+
updateSelectedPricingUnit: function(studyId, nodeId, planId, selectedPricingUnit) {
239239
const params = {
240240
url: {
241241
studyId,
242242
nodeId,
243243
pricingPlanId: planId,
244-
pricingUnitId: selectedUnit.getPricingUnitId(),
244+
pricingUnitId: selectedPricingUnit.getPricingUnitId(), // this should be just data
245+
// pricingUnitId: selectedPricingUnit["pricingUnitId"],
245246
}
246247
};
247248
return osparc.data.Resources.fetch("studies", "putPricingUnit", params)
@@ -250,7 +251,7 @@ qx.Class.define("osparc.store.Study", {
250251
if (!(studyId in this.__nodePricingUnit)) {
251252
this.__nodePricingUnit[studyId] = {};
252253
}
253-
this.__nodePricingUnit[studyId][nodeId] = selectedUnit;
254+
this.__nodePricingUnit[studyId][nodeId] = selectedPricingUnit;
254255
})
255256
.catch(err => {
256257
console.error("Failed to update selected pricing unit:", err);

0 commit comments

Comments
 (0)