Skip to content

Commit

Permalink
[Mission] Fix du bug au rattachement d'un signalement (#1364)
Browse files Browse the repository at this point in the history
  • Loading branch information
claire2212 committed May 9, 2024
2 parents effc426 + 008acf1 commit f62a77c
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions frontend/src/features/missions/MissionForm/utils.ts
Expand Up @@ -45,16 +45,11 @@ export function shouldSaveMission(
}

const filteredPreviousValues = {
...omit(previousValues, [
'attachedReportingIds',
'attachedReportings',
'detachedReportingIds',
'detachedReportings'
]),
...omit(previousValues, ['attachedReportings', 'detachedReportings']),
envActions: filterActionsFormInternalProperties(previousValues)
}
const filteredNextValues = {
...omit(nextValues, ['attachedReportingIds', 'attachedReportings', 'detachedReportingIds', 'detachedReportings']),
...omit(nextValues, ['attachedReportings', 'detachedReportings']),
envActions: filterActionsFormInternalProperties(nextValues)
}

Expand Down

0 comments on commit f62a77c

Please sign in to comment.