From 9bd2d3fa0f6e7e74e400619ecf7bc8ac40e719dc Mon Sep 17 00:00:00 2001 From: Pranav C Date: Wed, 20 Dec 2023 12:04:52 +0000 Subject: [PATCH] fix: condition correction --- packages/nocodb/src/helpers/webhookHelpers.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/nocodb/src/helpers/webhookHelpers.ts b/packages/nocodb/src/helpers/webhookHelpers.ts index 48261d83d6..ff97905f1a 100644 --- a/packages/nocodb/src/helpers/webhookHelpers.ts +++ b/packages/nocodb/src/helpers/webhookHelpers.ts @@ -307,7 +307,7 @@ export async function invokeWebhook( const data = newData[i]; const prevData = prevData ? prevData[i] : null; - if (hook.version === 'v3' && prevData) { + if (prevData) { // if condition is satisfied for prevData then return if ( await validateCondition( @@ -332,7 +332,7 @@ export async function invokeWebhook( } newData = filteredData; } else { - if (hook.version === 'v3' && prevData) { + if (prevData) { // if condition is satisfied for prevData then return if ( await validateCondition(