mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-20 19:32:15 +00:00
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:
@@ -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);
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user