Browse Source

fix: ts error

pull/7246/head
Raju Udava 11 months ago
parent
commit
c93545a19d
  1. 6
      packages/nocodb/src/helpers/webhookHelpers.ts

6
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;

Loading…
Cancel
Save