Skip to content

Commit 099120f

Browse files
committed
only if selection changed
1 parent efaf769 commit 099120f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

services/static-webserver/client/source/class/osparc/dashboard/TemplateBrowser.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,9 @@ qx.Class.define("osparc.dashboard.TemplateBrowser", {
183183
const nodeId = nodePricingUnits.getNodeId();
184184
const pricingPlanId = nodePricingUnits.getPricingPlanId();
185185
const selectedPricingUnitId = nodePricingUnits.getPricingUnits().getSelectedUnitId();
186-
promises.push(osparc.study.NodePricingUnits.patchPricingUnitSelection(studyId, nodeId, pricingPlanId, selectedPricingUnitId));
186+
if (selectedPricingUnitId) {
187+
promises.push(osparc.study.NodePricingUnits.patchPricingUnitSelection(studyId, nodeId, pricingPlanId, selectedPricingUnitId));
188+
}
187189
})
188190

189191
Promise.all(promises)

0 commit comments

Comments
 (0)