Wizard: Update AWS sources filtering

Same issue as in #3220. The list of sources did refetch, but did not re-render.
This commit is contained in:
regexowl 2025-05-12 17:14:11 +02:00 committed by Klara Simickova
parent 419c76fda6
commit 24fdc1147f

View file

@ -60,10 +60,11 @@ export const AwsSourcesSelect = () => {
setSelectOptions(filteredSources);
}
// This useEffect hook should run *only* on when the filter value changes.
// This useEffect hook should run *only* on when the filter value
// or the original array of sources changes.
// eslint's exhaustive-deps rule does not support this use.
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [filterValue]);
}, [filterValue, sources]);
const onInputClick = () => {
if (!isOpen) {