From 32fb4190111c60c8bd05d47d5bace2f9043d1f06 Mon Sep 17 00:00:00 2001 From: Michael Kret <88898367+michael-radency@users.noreply.github.com> Date: Wed, 14 Jun 2023 18:12:20 +0300 Subject: [PATCH] fix(Google Sheets Node): Return empty response if no rows updated (#6407) --- .../nodes/Google/Sheet/v2/actions/sheet/update.operation.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/nodes-base/nodes/Google/Sheet/v2/actions/sheet/update.operation.ts b/packages/nodes-base/nodes/Google/Sheet/v2/actions/sheet/update.operation.ts index a106eb9fb7..00546da233 100644 --- a/packages/nodes-base/nodes/Google/Sheet/v2/actions/sheet/update.operation.ts +++ b/packages/nodes-base/nodes/Google/Sheet/v2/actions/sheet/update.operation.ts @@ -377,6 +377,9 @@ export async function execute( if (nodeVersion < 4 || dataMode === 'autoMapInputData') { return items; } else { + if (!updateData.length) { + return []; + } return this.helpers.returnJsonArray(mappedValues); } }