debug: add immediate log after getHistoryDataForMerge

This commit is contained in:
Christian Vidal Wolf
2026-04-23 19:25:52 +02:00
parent cf602fe9a2
commit a987a5b750
+1
View File
@@ -137,6 +137,7 @@ export default function App() {
console.log('Fetching history data from Supabase for merge...'); console.log('Fetching history data from Supabase for merge...');
const historyData = await getHistoryDataForMerge(); const historyData = await getHistoryDataForMerge();
console.log('Supabase synced rows:', Object.keys(syncedData).length, '| History rows:', Object.keys(historyData).length); 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. // 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 // COLUMNS hardcoded indices (PRODUCT_TYPE=103, ITEM_TO_LOGISTIC=104, etc.) are used