mirror of
https://github.com/steedos/steedos-platform
synced 2024-11-23 01:16:43 +00:00
fix TypeError: Cannot read property '_id' of null
https://github.com/steedos/steedos-project-hbport/issues/775
This commit is contained in:
parent
290c018c03
commit
e1be21d540
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user