Revert "perf(Google Sheets Node): Don't load whole spreadsheet dataset to determine columns when appending data" (#11326)

This commit is contained in:
Shireen Missi 2024-10-21 15:09:35 +01:00 committed by Shireen Missi
parent c090fcb340
commit e615e9fdb9
No known key found for this signature in database
GPG key ID: D213F10998FACC51

View file

@ -226,9 +226,7 @@ export async function execute(
keyRowIndex = locationDefine.headerRow as number;
}
const [sheetNameForKeyRow] = range.split('!');
const sheetNameWithRangeForKeyRow = `${sheetNameForKeyRow}!1:${keyRowIndex}`;
const sheetData = await sheet.getData(sheetNameWithRangeForKeyRow, 'FORMATTED_VALUE');
const sheetData = await sheet.getData(range, 'FORMATTED_VALUE');
if (sheetData === undefined || !sheetData.length) {
dataMode = 'autoMapInputData';