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

[React DevTools][Bug] Don't reset selected element if elementIndicesWithErrorsOrWarnings is empty #24495

Closed
wants to merge 1 commit into from

Conversation

lunaruan
Copy link
Contributor

@lunaruan lunaruan commented May 4, 2022

Perhaps addresses #24441


If elementIndicesWithErrorsOrWarnings is empty, we shouldn't set the selectedElementId or the selectedElementIndex to the previous entry because there is no previous entry.

@lunaruan lunaruan requested review from bvaughn and eps1lon May 4, 2022 21:54
@facebook-github-bot facebook-github-bot added CLA Signed React Core Team Opened by a member of the React Core Team labels May 4, 2022
@lunaruan lunaruan requested a review from mondaychen May 4, 2022 21:55
@lunaruan
Copy link
Contributor Author

lunaruan commented May 5, 2022

#24501 does the same thing

@lunaruan lunaruan closed this May 5, 2022
@bvaughn
Copy link
Contributor

bvaughn commented May 5, 2022

Oh sorry! I didn’t see this or I wouldn’t have posted my PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed React Core Team Opened by a member of the React Core Team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants