fix(Google Sheets Node): Updating on row_number using automatic matching (#10940)

This commit is contained in:
Michael Kret
2024-09-25 15:50:50 +03:00
committed by GitHub
parent 31f4401351
commit ed91495ebc
2 changed files with 106 additions and 2 deletions

View File

@@ -307,11 +307,11 @@ export async function execute(
if (handlingExtraDataOption === 'ignoreIt') {
inputData.push(items[i].json);
}
if (handlingExtraDataOption === 'error' && columnsToMatchOn[0] !== 'row_number') {
if (handlingExtraDataOption === 'error') {
Object.keys(items[i].json).forEach((key) => errorOnUnexpectedColumn(key, i));
inputData.push(items[i].json);
}
if (handlingExtraDataOption === 'insertInNewColumn' && columnsToMatchOn[0] !== 'row_number') {
if (handlingExtraDataOption === 'insertInNewColumn') {
Object.keys(items[i].json).forEach(addNewColumn);
inputData.push(items[i].json);
}