Skip to content

Commit

Permalink
[Surveillance] add key on DatePicker componenent
Browse files Browse the repository at this point in the history
  • Loading branch information
claire2212 committed Aug 10, 2023
1 parent 6f98ff0 commit 0fef8c6
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ export function SurveillanceForm({ currentActionIndex, remove, setCurrentActionI
<Form.ControlLabel>Début et fin de surveillance (UTC)</Form.ControlLabel>
<StyledDatePickerContainer>
<StyledFormikDatePicker
key={`start-date-${durationMatchMissionField.value}`}
baseContainer={newWindowContainerRef.current}
data-cy="surveillance-start-date-time"
disabled={!!durationMatchMissionField.value}
Expand All @@ -77,6 +78,7 @@ export function SurveillanceForm({ currentActionIndex, remove, setCurrentActionI
withTime
/>
<StyledFormikDatePicker
key={`end-date-${durationMatchMissionField.value}`}
baseContainer={newWindowContainerRef.current}
data-cy="surveillance-end-date-time"
disabled={!!durationMatchMissionField.value}
Expand Down

0 comments on commit 0fef8c6

Please sign in to comment.