Skip to content

Commit

Permalink
N'affiche plus le statut détaille quand la sous-action a le "vrai" st…
Browse files Browse the repository at this point in the history
…atut non_renseigne
  • Loading branch information
amandinejacquelin authored and marc-rutkowski committed Mar 6, 2024
1 parent af4e840 commit 99847a4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export const useTableData: UseTableData = () => {
av => !!av && av !== 'non_renseigne'
)
) {
return {...action, avancement: 'detaille', isExpanded: true};
return {...action, avancement: !action.avancement?'detaille':action.avancement, isExpanded: true};
} else return {...action, isExpanded: false};
} else if (action.type === 'sous-action') {
// Les autres sous-actions ne sont pas dépliées
Expand Down

0 comments on commit 99847a4

Please sign in to comment.