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

This commit is contained in:
Sören Uhrbach
2024-10-15 07:54:23 +03:00
committed by GitHub
parent 7c7f2fb85a
commit 26ad091f47
@@ -226,7 +226,9 @@ export async function execute(
keyRowIndex = locationDefine.headerRow as number;
}
const sheetData = await sheet.getData(range, 'FORMATTED_VALUE');
const [sheetNameForKeyRow] = range.split('!');
const sheetNameWithRangeForKeyRow = `${sheetNameForKeyRow}!1:${keyRowIndex}`;
const sheetData = await sheet.getData(sheetNameWithRangeForKeyRow, 'FORMATTED_VALUE');
if (sheetData === undefined || !sheetData.length) {
dataMode = 'autoMapInputData';