fix(Google Sheets Node): Do not insert row_number as a new column, do not checkForSchemaChanges in update operation (#10201)

This commit is contained in:
Michael Kret
2024-07-26 11:45:00 +03:00
committed by GitHub
parent 2eba57774b
commit 5136d10ca3
3 changed files with 24 additions and 31 deletions

View File

@@ -5,11 +5,12 @@ import type {
ResourceMapperField,
} from 'n8n-workflow';
import { NodeOperationError } from 'n8n-workflow';
import type {
ISheetUpdateData,
SheetProperties,
ValueInputOption,
ValueRenderOption,
import {
ROW_NUMBER,
type ISheetUpdateData,
type SheetProperties,
type ValueInputOption,
type ValueRenderOption,
} from '../../helpers/GoogleSheets.types';
import type { GoogleSheet } from '../../helpers/GoogleSheet';
import {
@@ -312,7 +313,7 @@ export async function execute(
};
const addNewColumn = (key: string) => {
if (!columnNames.includes(key)) {
if (!columnNames.includes(key) && key !== ROW_NUMBER) {
newColumns.add(key);
}
};