diff --git a/src/components/appointments/ProductSelect.js b/src/components/appointments/ProductSelect.js index ac9f90d35..b5325edc4 100644 --- a/src/components/appointments/ProductSelect.js +++ b/src/components/appointments/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 (