mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 18:41:14 +00:00
🐛 Fix issue with Google Sheets update with custom key row #1736
This commit is contained in:
@@ -286,7 +286,7 @@ export class GoogleSheet {
|
|||||||
throw new NodeOperationError(this.executeFunctions.getNode(), `The range "${range}" is not valid.`);
|
throw new NodeOperationError(this.executeFunctions.getNode(), `The range "${range}" is not valid.`);
|
||||||
}
|
}
|
||||||
|
|
||||||
const keyRowRange = `${sheet ? sheet + '!' : ''}${rangeStartSplit[1]}${dataStartRowIndex}:${rangeEndSplit[1]}${dataStartRowIndex}`;
|
const keyRowRange = `${sheet ? sheet + '!' : ''}${rangeStartSplit[1]}${keyRowIndex + 1}:${rangeEndSplit[1]}${keyRowIndex + 1}`;
|
||||||
|
|
||||||
const sheetDatakeyRow = await this.getData(this.encodeRange(keyRowRange), valueRenderMode);
|
const sheetDatakeyRow = await this.getData(this.encodeRange(keyRowRange), valueRenderMode);
|
||||||
|
|
||||||
@@ -302,7 +302,7 @@ export class GoogleSheet {
|
|||||||
throw new NodeOperationError(this.executeFunctions.getNode(), `Could not find column for key "${indexKey}"!`);
|
throw new NodeOperationError(this.executeFunctions.getNode(), `Could not find column for key "${indexKey}"!`);
|
||||||
}
|
}
|
||||||
|
|
||||||
const startRowIndex = rangeStartSplit[2] || '';
|
const startRowIndex = rangeStartSplit[2] || dataStartRowIndex;
|
||||||
const endRowIndex = rangeEndSplit[2] || '';
|
const endRowIndex = rangeEndSplit[2] || '';
|
||||||
|
|
||||||
const keyColumn = this.getColumnWithOffset(rangeStartSplit[1], keyIndex);
|
const keyColumn = this.getColumnWithOffset(rangeStartSplit[1], keyIndex);
|
||||||
|
|||||||
Reference in New Issue
Block a user