mirror of
https://github.com/supabase/supabase.git
synced 2026-10-11 12:25:05 +03:00
Follow-up to #44471. Fixes Sentry error: `can't access property "ipv4SupportedForDedicatedPooler", g is undefined`. `connectionStringPooler` can be `undefined` when the databases query hasn't resolved yet (returns `[]` by default, so the lookup object is empty). Added optional chaining + explicit typing. ## To test - Open the connect sheet on any project — should render without errors - Check that IPv4 status panel still displays correctly once loaded <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Refactor** * Improved type safety and robustness in connection pooler configuration handling for more reliable IPv4 capability detection. <!-- end of auto-generated comment: release notes by coderabbit.ai --> Co-authored-by: Alaister Young <10985857+alaister@users.noreply.github.com> Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>