mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-14 00:24:07 -08:00
Revert "perf(Google Sheets Node): Don't load whole spreadsheet dataset to determine columns when appending data" (#11326)
This commit is contained in:
parent
c090fcb340
commit
e615e9fdb9
|
@ -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';
|
||||
|
|
Loading…
Reference in a new issue