Skip to content

Commit

Permalink
Merge pull request #352 from MTES-MCT/fix-clemence
Browse files Browse the repository at this point in the history
fix: fixes while clemence was testing
  • Loading branch information
lwih authored Sep 23, 2024
2 parents d66d012 + 79eb4bc commit f44de4a
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
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,
var distanceInNauticalMiles: Float? = null,
var consumedGOInLiters: Float? = null,
var consumedFuelInLiters: Float? = null,
var serviceId: Int? = null,
@MandatoryForStats
var nbrOfRecognizedVessel: Int? = null,
)
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ const ActionControlEnv: React.FC<ActionControlPropsEnv> = ({ action }) => {
<Stack.Item>
<Label>Lieu du contrôle</Label>
<CoordinatesInput
readOnly={true}
defaultValue={(extractLatLonFromMultiPoint(actionData?.geom) as Coordinates) || undefined}
coordinatesFormat={CoordinatesFormat.DEGREES_MINUTES_DECIMALS}
// label="Lieu du contrôle"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ const ActionControlFish: React.FC<ActionControlPropsFish> = ({ action }) => {
<Stack.Item>
<Label>Lieu du contrôle</Label>
<CoordinatesInput
readOnly={true}
defaultValue={[actionData?.latitude as any, actionData?.longitude as any]}
coordinatesFormat={CoordinatesFormat.DEGREES_MINUTES_DECIMALS}
// label="Lieu du contrôle"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ const MissionObservationsUnit: React.FC<MissionObservationsByUnitProps> = ({ mis
variables: {
mission: {
missionId,
observationsByUnit: observations || ''
observationsByUnit: observations ?? ''
}
}
})
Expand All @@ -47,6 +47,7 @@ const MissionObservationsUnit: React.FC<MissionObservationsByUnitProps> = ({ mis
<>
<FormikEffect onChange={handleSubmit} />
<FormikTextarea
isRequired={true}
isLight={false}
name="observations"
data-testid="mission-general-observation"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ export const GET_ACTION_BY_ID = gql`
id
actionType
actionDatetimeUtc
actionEndDatetimeUtc
vesselId
vesselName
latitude
Expand Down

0 comments on commit f44de4a

Please sign in to comment.