fix package analyses count should include variant count
This commit is contained in:
@@ -122,8 +122,9 @@ async function analysisPackagesWithVariantLoader({
|
||||
return [
|
||||
...acc,
|
||||
{
|
||||
variant,
|
||||
variantId: variant.id,
|
||||
nrOfAnalyses: getAnalysisElementMedusaProductIds([product]).length,
|
||||
nrOfAnalyses: getAnalysisElementMedusaProductIds([{ ...product, variant }]).length,
|
||||
price: variant.calculated_price?.calculated_amount ?? 0,
|
||||
title: product.title,
|
||||
subtitle: product.subtitle,
|
||||
|
||||
Reference in New Issue
Block a user