diff --git a/src/components/pages/dashboard/DashboardProduction.tsx b/src/components/pages/dashboard/DashboardProduction.tsx index 62f5840f..81254442 100644 --- a/src/components/pages/dashboard/DashboardProduction.tsx +++ b/src/components/pages/dashboard/DashboardProduction.tsx @@ -225,7 +225,8 @@ const DashboardProduction = () => { setAnalysisMode('OVERVIEW'); setSelectedLocationIds([]); setRawKandangInputValue(''); - }, [resetForm, resetFilterValues]); + filterModal.closeModal(); + }, [filterModal, resetForm, resetFilterValues]); // ===== Formik Error List ===== const { formErrorList, close, handleFormSubmit } = useFormikErrorList(formik);