fix(Google Sheets Node): Fix "Append or Update" on an empty sheet (#9175)

Co-authored-by: Michael Kret <michael.k@radency.com>
This commit is contained in:
Elias Meire
2024-04-23 10:29:39 +02:00
committed by GitHub
parent f5ccb5fe33
commit 29ee4fab61
3 changed files with 24 additions and 11 deletions

View File

@@ -476,7 +476,7 @@ export class GoogleSheet {
const keyIndex = columnNames.indexOf(indexKey);
if (keyIndex === -1) {
if (keyIndex === -1 && !upsert) {
throw new NodeOperationError(
this.executeFunctions.getNode(),
`Could not find column for key "${indexKey}"`,