Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Fix empty person response crashing #24308

Merged
merged 1 commit into from
Aug 12, 2024
Merged

Conversation

webjunkie
Copy link
Contributor

@webjunkie webjunkie commented Aug 12, 2024

Problem

In #24220 the error handling on the person page was improved to catch backend errors.
This made a problem in the logic surface: We accessed an array that could be empty.

https://posthoghelp.zendesk.com/agent/tickets/16615

Changes

Add condition.

How did you test this code?

Tested locally.

@webjunkie webjunkie requested a review from a team August 12, 2024 11:05
@webjunkie webjunkie self-assigned this Aug 12, 2024
Copy link
Contributor

Size Change: 0 B

Total Size: 1.07 MB

ℹ️ View Unchanged
Filename Size
frontend/dist/toolbar.js 1.07 MB

compressed-size-action

@webjunkie webjunkie merged commit c67aed7 into master Aug 12, 2024
96 checks passed
@webjunkie webjunkie deleted the fix/person-load-error branch August 12, 2024 13:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants