From d2ee6c3bf02c8e3408adbdcfc969535c4ef07b60 Mon Sep 17 00:00:00 2001 From: Christian Vidal Wolf Date: Mon, 16 Mar 2026 15:14:11 +0100 Subject: [PATCH] fix: add missing props destructuration in Dashboard component - Added stockMap, vendorStockMap, buyBoxLostMap, top50Mode to Dashboard props destructuring - This fixes 'stockMap is not defined' error in TopMovers Co-authored-by: Qwen-Coder --- components/Dashboard.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/Dashboard.tsx b/components/Dashboard.tsx index 0ce81d7..d47feb4 100644 --- a/components/Dashboard.tsx +++ b/components/Dashboard.tsx @@ -463,7 +463,7 @@ const GrowthTable: React.FC<{ ); } -const Dashboard: React.FC = ({ data, contextData, adsData = [], rawData = [] }) => { +const Dashboard: React.FC = ({ data, contextData, adsData = [], rawData = [], stockMap, vendorStockMap, buyBoxLostMap, top50Mode }) => { const [seasonalityMetric, setSeasonalityMetric] = useState<'sellOut' | 'units'>('sellOut'); const [top10Metric, setTop10Metric] = useState<'sellOut' | 'units'>('sellOut');