Skip to content

Commit

Permalink
fix(dashboard): quand on supprime un choix d'une liste de champ, et q…
Browse files Browse the repository at this point in the history
…u'on annule, et qu'on va remodifier cette liste, le champ est toujours disparu alors qu'il devrait être là - c'est corrigé (#1756)
  • Loading branch information
arnaudambro authored Nov 6, 2023
1 parent 2cdcbaf commit 3c6cfdc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
9 changes: 8 additions & 1 deletion dashboard/src/components/TableCustomFields.js
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,14 @@ export const EditCustomField = ({ open, onDelete, data, editingField, onClose, o
</form>
</ModalBody>
<ModalFooter>
<button type="button" name="cancel" className="button-cancel" onClick={onClose}>
<button
type="button"
name="cancel"
className="button-cancel"
onClick={() => {
setField(editingField || newCustomField());
onClose();
}}>
Annuler
</button>
{!isNewField && !onlyOptionsEditable && (
Expand Down
2 changes: 0 additions & 2 deletions dashboard/src/scenes/person/components/SummaryPrint.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@ export function SummaryPrint({ person }: { person: PersonPopulated }) {
[person]
);

console.log(actions);

return (
<div className="printonly">
<h1>Dossier social de {person?.name}</h1>
Expand Down

0 comments on commit 3c6cfdc

Please sign in to comment.