File tree Expand file tree Collapse file tree 1 file changed +8
-7
lines changed
Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -283,15 +283,16 @@ function render(
283283 // they're passing us a custom container or not.
284284 mountedContainers . add ( container )
285285 } else {
286- const rootEntry = mountedRootEntries . find (
287- rootEntry => rootEntry . container === container
286+ const entry = mountedRootEntries . find (
287+ rootEntry => rootEntry . container === container ,
288288 )
289- // Else is unreachable since `mountedContainers` has the `container`.
290- // Only reachable if one would accidentally add the container to `mountedContainers` but not the root to `mountedRootEntries`
291- /* istanbul ignore else */
292- if ( rootEntry ) {
293- root = rootEntry . root
289+
290+ if ( entry ) {
291+ root = entry . root
294292 }
293+ // Else is unreachable since `mountedContainers` has the `container`.
294+ // Only reachable if one would accidentally add the container to `mountedContainers` but not the root to `mountedRootEntries`
295+ /* istanbul ignore else */
295296 }
296297
297298 return renderRoot ( ui , {
You can’t perform that action at this time.
0 commit comments