|
|
@ -307,10 +307,6 @@ export const WatchProviderSelector = ({
|
|
|
|
onChange(watchRegion, activeProvider);
|
|
|
|
onChange(watchRegion, activeProvider);
|
|
|
|
}, [activeProvider, watchRegion, onChange]);
|
|
|
|
}, [activeProvider, watchRegion, onChange]);
|
|
|
|
|
|
|
|
|
|
|
|
useEffect(() => {
|
|
|
|
|
|
|
|
setActiveProvider([]);
|
|
|
|
|
|
|
|
}, [watchRegion]);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const orderedData = useMemo(() => {
|
|
|
|
const orderedData = useMemo(() => {
|
|
|
|
if (!data) {
|
|
|
|
if (!data) {
|
|
|
|
return [];
|
|
|
|
return [];
|
|
|
@ -335,7 +331,12 @@ export const WatchProviderSelector = ({
|
|
|
|
<RegionSelector
|
|
|
|
<RegionSelector
|
|
|
|
value={watchRegion}
|
|
|
|
value={watchRegion}
|
|
|
|
name="watchRegion"
|
|
|
|
name="watchRegion"
|
|
|
|
onChange={(_name, value) => setWatchRegion(value)}
|
|
|
|
onChange={(_name, value) => {
|
|
|
|
|
|
|
|
if (value !== watchRegion) {
|
|
|
|
|
|
|
|
setActiveProvider([]);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
setWatchRegion(value);
|
|
|
|
|
|
|
|
}}
|
|
|
|
disableAll
|
|
|
|
disableAll
|
|
|
|
watchProviders
|
|
|
|
watchProviders
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|