Browse Source

fix: if row doesn't exist avoid invoking nocoExecute

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/5444/head
Pranav C 2 years ago
parent
commit
28e3d9b8f1
  1. 2
      packages/nocodb-nest/src/db/BaseModelSqlv2.ts

2
packages/nocodb-nest/src/db/BaseModelSqlv2.ts

@ -175,7 +175,7 @@ class BaseModelSqlv2 {
tableName: this.model.title,
});
const { ast } = await getAst({ model, view });
data = await nocoExecute(ast, data, {});
data = data && (await nocoExecute(ast, data, {}));
return data;
}

Loading…
Cancel
Save