Skip to content

Commit ad451ea

Browse files
committed
minor
1 parent 7cf8cf6 commit ad451ea

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

services/static-webserver/client/source/class/osparc/node/TierSelectionView.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,11 @@ qx.Class.define("osparc.node.TierSelectionView", {
7272
.then(preselectedPricingUnit => {
7373
if (preselectedPricingUnit && preselectedPricingUnit["pricingUnitId"]) {
7474
const tierFound = tierBox.getSelectables().find(t => t.getModel() === preselectedPricingUnit["pricingUnitId"]);
75-
tierBox.setSelection([tierFound]);
75+
if (tierFound) {
76+
tierBox.setSelection([tierFound]);
77+
} else {
78+
console.error("Tier not found");
79+
}
7680
}
7781
})
7882
.finally(() => {

0 commit comments

Comments
 (0)