Browse Source

fix: condition correction

pull/7246/head
Pranav C 11 months ago
parent
commit
9bd2d3fa0f
  1. 4
      packages/nocodb/src/helpers/webhookHelpers.ts

4
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(

Loading…
Cancel
Save