Skip to content

Guard against undefined metric.user in impact map#8711

Merged
iHiD merged 1 commit into
mainfrom
fix/8656-impact-map-undefined-user
Feb 16, 2026
Merged

Guard against undefined metric.user in impact map#8711
iHiD merged 1 commit into
mainfrom
fix/8656-impact-map-undefined-user

Conversation

@iHiD
Copy link
Copy Markdown
Member

@iHiD iHiD commented Feb 16, 2026

Summary

  • MetricPointUserWithTooltip accesses metric.user.handle and metric.user.avatarUrl, but user is optional on the Metric type
  • Added an early return when user data is missing to prevent the crash

Closes #8656

Test plan

  • Verify impact map still renders metric points with user data correctly
  • Confirm no crash when a metric arrives via WebSocket without user data

🤖 Generated with Claude Code

MetricPointUserWithTooltip accesses metric.user.handle and
metric.user.avatarUrl, but user is optional on the Metric type.
Return an empty fragment when user data is missing.

Closes #8656

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@iHiD iHiD requested a review from dem4ron as a code owner February 16, 2026 15:47
@iHiD iHiD merged commit 71b1fb4 into main Feb 16, 2026
41 checks passed
@iHiD iHiD deleted the fix/8656-impact-map-undefined-user branch February 16, 2026 23:01
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.

TypeError: undefined is not an object (evaluating 'e.user.handle')

1 participant