diff --git a/src/components/appointments/fields/ProductSelect.js b/src/components/appointments/fields/ProductSelect.js index 65f7eb3a2..e53d051e1 100644 --- a/src/components/appointments/fields/ProductSelect.js +++ b/src/components/appointments/fields/ProductSelect.js @@ -56,7 +56,8 @@ const ProductSelect = ({name, selectedProducts}) => { const {value} = getFieldProps(name); const getOptions = useCallback( async () => await getProducts(baseUrl, selectedProducts, value), - [baseUrl, selectedProducts, value] + // eslint-disable-next-line react-hooks/exhaustive-deps + [baseUrl, JSON.stringify(selectedProducts), value] ); return (