Skip to content

Conversation

@setchy
Copy link
Member

@setchy setchy commented Oct 30, 2025

Attempted fix of edge cases which could be causing #2335

Signed-off-by: Adam Setch <adam.setch@outlook.com>
@setchy setchy requested a review from codebytere October 30, 2025 01:04
@github-actions github-actions bot added the bug Something isn't working label Oct 30, 2025
for (const n of targetNotifications) {
n.unread = false;
}
function applyReadStateToNotifications(
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

prevents any direct state mutation

const repo = notification.repository?.full_name;

// Skip notifications without valid repository data
if (!repo) {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

more defensive handling

@sonarqubecloud
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Development

Successfully merging this pull request may close these issues.

2 participants