Compare commits

...
Author SHA1 Message Date
jmartinandCursor 9f4c5303fb fix(#217): retire comparaison ANNULE redondante (TS2367)
Après le early-return ANNULE dans actionsPour, le narrowing TS
rendait la comparaison inutile et cassait le build Docker.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-16 16:52:10 +02:00
@@ -623,11 +623,11 @@ export class EvenementsAgendaService {
}
if (role === RoleType.PARENT && !isCreator) {
// ANNULE déjà exclu en tête de actionsPour (narrowing TS)
const congeEnAttente =
row.type === TypeEvenementAgendaType.CONGE_AM &&
row.statut === StatutEvenementAgendaType.EN_ATTENTE &&
statutLot !== AgendaLotStatutType.REFUSE &&
statutLot !== AgendaLotStatutType.ANNULE;
statutLot !== AgendaLotStatutType.REFUSE;
const arretAck =
row.type === TypeEvenementAgendaType.ARRET_MALADIE_AM;
const soinAck = row.type === TypeEvenementAgendaType.SOIN_ENFANT;