Refactor useEffect dependencies in DocumentsReminderHistory component
This commit is contained in:
parent
3f3d681543
commit
aedf2e0f5a
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user