Skip to content

Commit 1b196ea

Browse files
committed
issue #1430
1 parent ed2fea9 commit 1b196ea

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

src/pure.js

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff 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, {

0 commit comments

Comments
 (0)