This commit is contained in:
Jamie Howard 2023-07-11 16:53:47 +01:00
parent 6fcaea76a6
commit c10d384bc7

View File

@ -71,7 +71,7 @@ const decorator = (service) => ({
const updatedEntity = await service.update.call(this, uid, entityId, { ...opts, data });
const updatedStage = updatedEntity[ENTITY_STAGE_ATTRIBUTE];
if (previousStage?.id && previousStage.id !== updatedStage.id) {
if (previousStage?.id && updatedStage?.id && previousStage.id !== updatedStage.id) {
const model = strapi.getModel(uid);
strapi.eventHub.emit(WORKFLOW_UPDATE_STAGE, {