From aedf2e0f5af1fb86609c4a985078dbf4775aedbf Mon Sep 17 00:00:00 2001 From: Max S Date: Tue, 17 Sep 2024 15:16:39 +0200 Subject: [PATCH] Refactor useEffect dependencies in DocumentsReminderHistory component --- .../Layouts/Folder/DocumentsReminderHistory/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/front/Components/Layouts/Folder/DocumentsReminderHistory/index.tsx b/src/front/Components/Layouts/Folder/DocumentsReminderHistory/index.tsx index 3331e2ff..8d637bc4 100644 --- a/src/front/Components/Layouts/Folder/DocumentsReminderHistory/index.tsx +++ b/src/front/Components/Layouts/Folder/DocumentsReminderHistory/index.tsx @@ -110,7 +110,7 @@ export default function DocumentsReminderHistory(props: IProps) { useEffect(() => { fetchReminders(); fetchCustomers(); - }, [customerOption, customersOptions, fetchCustomers, fetchReminders]); + }, [fetchCustomers, fetchReminders]); const onSelectionChange = useCallback((option: IOption | null) => { setCustomerOption(option ?? null);