Skip to content

fix(seer): Handle empty response in SCM integrations query#110836

Merged
oioki merged 1 commit intomasterfrom
oioki/fix/seer-config-reminder-empty-response
Mar 17, 2026
Merged

fix(seer): Handle empty response in SCM integrations query#110836
oioki merged 1 commit intomasterfrom
oioki/fix/seer-config-reminder-empty-response

Conversation

@oioki
Copy link
Member

@oioki oioki commented Mar 17, 2026

Handle empty response in primary nav Seer config reminder

When the integrations API returns a 204 with no body, data is undefined.
The previous code left scmIntegrations as undefined | Integration[],
requiring optional chaining (?.some, && length checks) throughout the
hook. This adds a ?? [] fallback so scmIntegrations is always an array,
simplifying downstream checks.

#inc-2083

When the backend returns 204 with no body, the integrations API
response is undefined. Add a nullish coalescing fallback so
scmIntegrations is always an array, removing the need for optional
chaining on subsequent operations.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Mar 17, 2026
@oioki oioki marked this pull request as ready for review March 17, 2026 09:43
@oioki oioki merged commit 12f7227 into master Mar 17, 2026
64 checks passed
@oioki oioki deleted the oioki/fix/seer-config-reminder-empty-response branch March 17, 2026 10:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Frontend Automatically applied to PRs that change frontend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants