diff --git a/packages/nocodb/src/helpers/webhookHelpers.ts b/packages/nocodb/src/helpers/webhookHelpers.ts index 08ca0a74c5..26dc2fd532 100644 --- a/packages/nocodb/src/helpers/webhookHelpers.ts +++ b/packages/nocodb/src/helpers/webhookHelpers.ts @@ -305,14 +305,14 @@ export async function invokeWebhook( const filteredData = []; for (let i = 0; i < newData.length; i++) { const data = newData[i]; - const prevData = prevData ? prevData[i] : null; + const pData = prevData[i] ? prevData[i] : null; // if condition is satisfied for prevData then return if ( - prevData && + pData && (await validateCondition( testFilters || (await hook.getFilters()), - prevData, + pData, )) ) { continue;