Skip to content

Commit

Permalink
fix TypeError: Cannot read property '_id' of null
Browse files Browse the repository at this point in the history
  • Loading branch information
sunhaolin committed Aug 21, 2024
1 parent 290c018 commit e1be21d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/standard-objects/base.trigger.js
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,10 @@ const beforeUpdateBase = async function () {
}
const afterDeleteBase = async function () {
const { object_name, previousDoc } = this;
if (!previousDoc) {
return;
}

const object = objectql.getObject(object_name);
const objectConfig = object.toConfig();
const fields = objectConfig.fields;
Expand Down

0 comments on commit e1be21d

Please sign in to comment.