From 7ea60dfbd79934bb5f81536881b90d21becaaad5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mathilde=20Hauk=C3=B8=20Haugum?= <69193134+mathildehaugum@users.noreply.github.com> Date: Wed, 13 Dec 2023 15:47:04 +0100 Subject: [PATCH] Reset engagement modal values on add engagement (#405) --- frontend/src/components/Staffing/AddEngagementForm.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/frontend/src/components/Staffing/AddEngagementForm.tsx b/frontend/src/components/Staffing/AddEngagementForm.tsx index 29fda330..24f30ca9 100644 --- a/frontend/src/components/Staffing/AddEngagementForm.tsx +++ b/frontend/src/components/Staffing/AddEngagementForm.tsx @@ -150,6 +150,7 @@ export function AddEngagementForm({ ), ); setIsDisabledHotkeys(true); + resetSelectedValues(); // TODO: Futher logic for the changes in openModal *here* } else console.error("Error adding engagement");