Refactor useEffect dependencies in DocumentsReminderHistory component

This commit is contained in:
Max S 2024-09-17 15:16:39 +02:00
parent 3f3d681543
commit aedf2e0f5a

View File

@ -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);