@@ -117,35 +117,35 @@ function SuspenseRects({
117117 const boundingBox = getBoundingBox ( suspense . rects ) ;
118118
119119 return (
120- < >
121- < ScaledRect rect = { boundingBox } className = { styles . SuspenseRectsBoundary } >
122- < ViewBox . Provider value = { boundingBox } >
123- { suspense . rects !== null &&
124- suspense . rects . map ( ( rect , index ) => {
125- return (
126- < ScaledRect
127- key = { index }
128- className = { styles . SuspenseRectsRect }
129- rect = { rect }
130- data-highlighted = { selected }
131- onClick = { handleClick }
132- onPointerOver = { handlePointerOver }
133- onPointerLeave = { handlePointerLeave }
134- // Reach-UI tooltip will go out of bounds of parent scroll container.
135- title = { suspense . name }
136- />
137- ) ;
138- } ) }
120+ < ScaledRect rect = { boundingBox } className = { styles . SuspenseRectsBoundary } >
121+ < ViewBox . Provider value = { boundingBox } >
122+ { suspense . rects !== null &&
123+ suspense . rects . map ( ( rect , index ) => {
124+ return (
125+ < ScaledRect
126+ key = { index }
127+ className = { styles . SuspenseRectsRect }
128+ rect = { rect }
129+ data-highlighted = { selected }
130+ onClick = { handleClick }
131+ onPointerOver = { handlePointerOver }
132+ onPointerLeave = { handlePointerLeave }
133+ // Reach-UI tooltip will go out of bounds of parent scroll container.
134+ title = { suspense . name }
135+ />
136+ ) ;
137+ } ) }
138+ { suspense . children . length > 0 && (
139139 < ScaledRect
140140 className = { styles . SuspenseRectsBoundaryChildren }
141141 rect = { boundingBox } >
142142 { suspense . children . map ( childID => {
143143 return < SuspenseRects key = { childID } suspenseID = { childID } /> ;
144144 } ) }
145145 </ ScaledRect >
146- </ ViewBox . Provider >
147- </ ScaledRect >
148- </ >
146+ ) }
147+ </ ViewBox . Provider >
148+ </ ScaledRect >
149149 ) ;
150150}
151151
0 commit comments