Skip to content

Commit

Permalink
Fix the error message
Browse files Browse the repository at this point in the history
  • Loading branch information
igorbrasileiro committed Apr 8, 2022
1 parent 8e1a213 commit 274f879
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/api/src/platforms/vtex/loaders/sku.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export const getSkuLoader = (_: Options, clients: Clients) => {
}, {} as Record<string, EnhancedSku>)

const skus = skuIds.map((skuId) => skuBySkuId[skuId])
const missingSkus = skus.filter((sku) => !sku)
const missingSkus = skus.filter((sku) => !sku).map((sku) => sku.id)

if (skus.length > 0 && missingSkus.length > 0) {
throw new Error(
Expand Down

0 comments on commit 274f879

Please sign in to comment.