mirror of
https://github.com/christianvidalwolf-prog/Craze-Data-check.git
synced 2026-08-03 13:55:23 +02:00
fix: pad rows to match extendedHeaders length so internal cols are readable
This commit is contained in:
@@ -206,8 +206,6 @@ export async function getHistoryDataForMerge(): Promise<Record<string, ExcelRow>
|
||||
return {};
|
||||
}
|
||||
const entries: Array<{ product_id: string; new_data: ExcelRow }> = await response.json();
|
||||
console.log('[getHistoryDataForMerge] Raw entries:', entries.length);
|
||||
console.log('[getHistoryDataForMerge] Has 59272EN?:', entries.some(e => e.product_id === '59272EN'));
|
||||
|
||||
const result: Record<string, ExcelRow> = {};
|
||||
const seen = new Set<string>();
|
||||
@@ -218,11 +216,6 @@ export async function getHistoryDataForMerge(): Promise<Record<string, ExcelRow>
|
||||
result[entry.product_id] = entry.new_data;
|
||||
}
|
||||
}
|
||||
console.log('[getHistoryDataForMerge] Deduplicated count:', Object.keys(result).length);
|
||||
console.log('[getHistoryDataForMerge] result[59272EN]?:', !!result['59272EN']);
|
||||
if (result['59272EN']) {
|
||||
console.log('[getHistoryDataForMerge] result[59272EN][103]:', result['59272EN'][103]);
|
||||
}
|
||||
return result;
|
||||
} catch (error: any) {
|
||||
console.error('[getHistoryDataForMerge] Exception:', error.message);
|
||||
|
||||
Reference in New Issue
Block a user