mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-19 19:11:13 +00:00
Revert "perf(Google Sheets Node): Don't load whole spreadsheet dataset to determine columns when appending data" (#11326)
This commit is contained in:
@@ -226,9 +226,7 @@ export async function execute(
|
|||||||
keyRowIndex = locationDefine.headerRow as number;
|
keyRowIndex = locationDefine.headerRow as number;
|
||||||
}
|
}
|
||||||
|
|
||||||
const [sheetNameForKeyRow] = range.split('!');
|
const sheetData = await sheet.getData(range, 'FORMATTED_VALUE');
|
||||||
const sheetNameWithRangeForKeyRow = `${sheetNameForKeyRow}!1:${keyRowIndex}`;
|
|
||||||
const sheetData = await sheet.getData(sheetNameWithRangeForKeyRow, 'FORMATTED_VALUE');
|
|
||||||
|
|
||||||
if (!sheetData?.length) {
|
if (!sheetData?.length) {
|
||||||
dataMode = 'autoMapInputData';
|
dataMode = 'autoMapInputData';
|
||||||
|
|||||||
Reference in New Issue
Block a user