From a987a5b750dcbbdf5f0cbb6b45960b729d6ff0e7 Mon Sep 17 00:00:00 2001 From: Christian Vidal Wolf Date: Thu, 23 Apr 2026 19:25:52 +0200 Subject: [PATCH] debug: add immediate log after getHistoryDataForMerge --- src/App.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/App.tsx b/src/App.tsx index 7d28fc5..4303dc0 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -137,6 +137,7 @@ export default function App() { console.log('Fetching history data from Supabase for merge...'); const historyData = await getHistoryDataForMerge(); console.log('Supabase synced rows:', Object.keys(syncedData).length, '| History rows:', Object.keys(historyData).length); + console.log('[DEBUG] historyData["59272EN"] exists:', '59272EN' in historyData, '| value:', historyData['59272EN']?.[103], '| type:', typeof historyData['59272EN']); // Extend headers with virtual columns if the Excel is shorter than the saved data. // COLUMNS hardcoded indices (PRODUCT_TYPE=103, ITEM_TO_LOGISTIC=104, etc.) are used