From 3830ca7ec40e88b89d9d03676c0f265f0c650eae Mon Sep 17 00:00:00 2001 From: Mihoub Debache Date: Mon, 6 Nov 2023 09:33:53 +0100 Subject: [PATCH] fix(localisation): update localisation form --- src/components/forms/localisation/index.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/forms/localisation/index.js b/src/components/forms/localisation/index.js index cf5f03b3..1ce83d0f 100644 --- a/src/components/forms/localisation/index.js +++ b/src/components/forms/localisation/index.js @@ -302,9 +302,11 @@ export default function LocalisationForm({ id, data, onDelete, onSave }) { label="Date de fin" onDateChange={(value) => updateForm({ endDate: value })} /> + + updateForm({ active: false })} + onChange={(e) => updateForm({ active: !e.target.checked })} checked={form.active === false} />