Refine fix to handle undefined values correctly in WatchProviderSelector

Co-authored-by: sct <234213+sct@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2025-07-14 01:46:06 +00:00
parent 5771bac387
commit b8a4fa49b7

View File

@@ -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]);