mirror of
https://github.com/sct/overseerr.git
synced 2025-12-26 16:27:17 +01:00
Refine fix to handle undefined values correctly in WatchProviderSelector
Co-authored-by: sct <234213+sct@users.noreply.github.com>
This commit is contained in:
@@ -315,13 +315,13 @@ export const WatchProviderSelector = ({
|
||||
|
||||
// Sync internal state with props when they change
|
||||
useEffect(() => {
|
||||
if (activeProviders) {
|
||||
if (activeProviders !== undefined) {
|
||||
setActiveProvider(activeProviders);
|
||||
}
|
||||
}, [activeProviders]);
|
||||
|
||||
useEffect(() => {
|
||||
if (region) {
|
||||
if (region !== undefined) {
|
||||
setWatchRegion(region);
|
||||
}
|
||||
}, [region]);
|
||||
|
||||
Reference in New Issue
Block a user