@strapi/review-workflows 5.0.0-rc.19 → 5.0.0-rc.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -8128,12 +8128,13 @@ const stages = {
8128
8128
  }
8129
8129
  const entityStageId = entity[ENTITY_STAGE_ATTRIBUTE]?.id;
8130
8130
  const canTransition = stagePermissions2.can(STAGE_TRANSITION_UID, entityStageId);
8131
- const [workflowCount, { stages: workflowStages }] = await Promise.all([
8131
+ const [workflowCount, workflowResult] = await Promise.all([
8132
8132
  workflowService.count(),
8133
8133
  workflowService.getAssignedWorkflow(modelUID, {
8134
8134
  populate: "stages"
8135
8135
  })
8136
8136
  ]);
8137
+ const workflowStages = workflowResult ? workflowResult.stages : [];
8137
8138
  const meta = {
8138
8139
  stageCount: workflowStages.length,
8139
8140
  workflowCount