[DevTools Bug]: TreeContext error: Can't access property "id" in undefined #24441
Labels
Component: Developer Tools
Status: Unconfirmed
A potential issue that we haven't yet confirmed as a bug
Type: Bug
Website or app
https://app.replay.io/
Repro steps
Unfortunately I don't know how to reproduce this bug. It was just logged to Sentry.
It seems like there's a logic bug here though:
react/packages/react-devtools-shared/src/devtools/views/Components/TreeContext.js
Lines 386 to 416 in bd4784c
If
selectedElementIndex
is null orelementIndicesWithErrorsOrWarnings
is empty, thenflatIndex
would be 0 still– and this statement would result in an undefined entry:How often does this bug happen?
Only once
DevTools package (automated)
react-devtools-inline
DevTools version (automated)
4.24.4
Error message (automated)
Error: can't access property "id", n is undefined
Error call stack (automated)
Error component stack (automated)
No response
GitHub query string (automated)
No response
The text was updated successfully, but these errors were encountered: