diff --git a/backend/src/main/kotlin/fr/gouv/dgampa/rapportnav/domain/entities/mission/nav/generalInfo/MissionGeneralInfoEntity.kt b/backend/src/main/kotlin/fr/gouv/dgampa/rapportnav/domain/entities/mission/nav/generalInfo/MissionGeneralInfoEntity.kt index cf67bd892..9d675e20e 100644 --- a/backend/src/main/kotlin/fr/gouv/dgampa/rapportnav/domain/entities/mission/nav/generalInfo/MissionGeneralInfoEntity.kt +++ b/backend/src/main/kotlin/fr/gouv/dgampa/rapportnav/domain/entities/mission/nav/generalInfo/MissionGeneralInfoEntity.kt @@ -1,5 +1,7 @@ package fr.gouv.dgampa.rapportnav.domain.entities.mission.nav.generalInfo +import fr.gouv.dgampa.rapportnav.config.MandatoryForStats + data class MissionGeneralInfoEntity( var id: Int, var missionId: Int, @@ -7,5 +9,6 @@ data class MissionGeneralInfoEntity( var consumedGOInLiters: Float? = null, var consumedFuelInLiters: Float? = null, var serviceId: Int? = null, + @MandatoryForStats var nbrOfRecognizedVessel: Int? = null, ) diff --git a/frontend/src/features/common/components/elements/date-picker.tsx b/frontend/src/features/common/components/elements/date-picker.tsx index 18e607aa2..e39270551 100644 --- a/frontend/src/features/common/components/elements/date-picker.tsx +++ b/frontend/src/features/common/components/elements/date-picker.tsx @@ -18,7 +18,6 @@ export const preprocessDateForPicker = (date?: Date): Date | undefined => { // Postprocessing after receiving from datepicker export const postprocessDateFromPicker = (date?: Date): Date | undefined => { - debugger if (!date || !isValid(date)) { return } diff --git a/frontend/src/features/pam/mission/components/elements/actions/action-control-env.tsx b/frontend/src/features/pam/mission/components/elements/actions/action-control-env.tsx index 677639e05..842fde05a 100644 --- a/frontend/src/features/pam/mission/components/elements/actions/action-control-env.tsx +++ b/frontend/src/features/pam/mission/components/elements/actions/action-control-env.tsx @@ -77,6 +77,7 @@ const ActionControlEnv: React.FC = ({ action }) => { = ({ action }) => { = ({ mis variables: { mission: { missionId, - observationsByUnit: observations || '' + observationsByUnit: observations ?? '' } } }) @@ -47,6 +47,7 @@ const MissionObservationsUnit: React.FC = ({ mis <>