diff --git a/resources/js/components/Evaluations/Single/Components/Step4/PlanAction.vue b/resources/js/components/Evaluations/Single/Components/Step4/PlanAction.vue index 111e5473c393c864ccef7995af1bfecb963efd8d..dc91a1ffd16c40feaefbdd024d9202512f7f35e0 100644 --- a/resources/js/components/Evaluations/Single/Components/Step4/PlanAction.vue +++ b/resources/js/components/Evaluations/Single/Components/Step4/PlanAction.vue @@ -41,7 +41,8 @@ export default { }, isOneLevelExpected () { // Il faut au moins un expected_level dans le plan d'action - return this.evaluation.measure_levels.find(ml => ml.expected_level) + let isOneMeasureAvailable = this.evaluation.measure_levels.find(ml => ml.actual_level !== 3) + return isOneMeasureAvailable ? this.evaluation.measure_levels.find(ml => ml.expected_level > ml.actual_level) : true } }, methods : {