Skip to content

Commit

Permalink
one more check
Browse files Browse the repository at this point in the history
  • Loading branch information
odeimaiz committed Jan 15, 2025
1 parent a2e6ffc commit edc686a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ qx.Class.define("osparc.desktop.credits.CheckoutsTableModel", {
checkoutsItems.forEach(checkoutsItem => {
const licensedItemId = checkoutsItem["licensedItemId"];
const licensedItem = licensedItems.find(licItem => licItem["licensedItemId"] === licensedItemId);
const vipModel = vipModels.find(vipMdl => vipMdl["modelId"] == licensedItem["name"]);
const vipModel = vipModels.find(vipMdl => licensedItem && (vipMdl["modelId"] == licensedItem["name"]));
data.push({
[checkoutsCols.PURCHASE_ID.id]: checkoutsItem["licensedItemPurchaseId"],
[checkoutsCols.ITEM_ID.id]: licensedItemId,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ qx.Class.define("osparc.desktop.credits.PurchasesTableModel", {
purchasesItems.forEach(purchasesItem => {
const licensedItemId = purchasesItem["licensedItemId"];
const licensedItem = licensedItems.find(licItem => licItem["licensedItemId"] === licensedItemId);
const vipModel = vipModels.find(vipMdl => vipMdl["modelId"] == licensedItem["name"]);
const vipModel = vipModels.find(vipMdl => licensedItem && (vipMdl["modelId"] == licensedItem["name"]));
data.push({
[purchasesCols.PURCHASE_ID.id]: purchasesItem["licensedItemPurchaseId"],
[purchasesCols.ITEM_ID.id]: licensedItemId,
Expand Down

0 comments on commit edc686a

Please sign in to comment.