File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
services/static-webserver/client/source/class/osparc/store Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff 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 ) ;
You can’t perform that action at this time.
0 commit comments