diff --git a/src/devtools/views/Tree.js b/src/devtools/views/Tree.js index 2326415ec7..a696c815dd 100644 --- a/src/devtools/views/Tree.js +++ b/src/devtools/views/Tree.js @@ -79,12 +79,13 @@ export default function Tree(props: Props) { [baseDepth, numElements, getElementAtIndex] ); - const itemSize = parseInt( - getComputedStyle((document.body: any)).getPropertyValue( - '--line-height-data' - ), - 10 - ); + const itemSize = + parseInt( + getComputedStyle((document.body: any)).getPropertyValue( + '--line-height-data' + ), + 10 + ) || 18; return (