mirror of
https://github.com/strapi/strapi.git
synced 2025-09-25 08:19:07 +00:00
fix(ee)
This commit is contained in:
parent
6fcaea76a6
commit
c10d384bc7
@ -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, {
|
||||
|
Loading…
x
Reference in New Issue
Block a user