-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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 crash in Feeds and Starter Packs #4616
Conversation
Your Render PR Server URL is https://social-app-pr-4616.onrender.com. Follow its progress at https://dashboard.render.com/web/srv-cpssu33v2p9s73f4hnf0. |
: savedFeeds.concat( | ||
popularFeeds.filter(f => !savedFeeds.some(sf => sf.uri === f.uri)), | ||
) | ||
const suggestedFeeds = savedFeeds.concat( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not essential to the fix, but this wasn't doing anything and made the code more complicated.
}) | ||
} else if (savedItem.type === 'feed') { | ||
const resolvedFeed = resolvedFeeds.get(savedItem.value) | ||
if (resolvedFeed) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the fix.
} | ||
} else if (savedItem.type === 'list') { | ||
const resolvedList = resolvedLists.get(savedItem.value) | ||
if (resolvedList) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And this.
? resolvedFeeds.get(s.value) | ||
: resolvedLists.get(s.value), | ||
} | ||
}) as SavedFeedItem[] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was covering up the mistake.
|
See inline comments.
Test Plan
Add
throw Error('no')
here, then add it here. In both cases the Feeds page should be able to recover, and show the rest instead. Similarly start pack creation should recover in both cases.