Skip to content

Commit

Permalink
fix: missing component in layout (#4535)
Browse files Browse the repository at this point in the history
fixes #4531
  • Loading branch information
manucorporat committed Jun 20, 2023
1 parent e382512 commit 737144a
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions packages/qwik-city/runtime/src/router-outlet-component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,11 @@ export const RouterOutlet = component$(() => {
const contentsLen = value.length;
let cmp: JSXNode | null = null;
for (let i = contentsLen - 1; i >= 0; i--) {
cmp = jsx(value[i].default, {
children: cmp,
});
if (value[i].default) {
cmp = jsx(value[i].default, {
children: cmp,
});
}
}
return (
<>
Expand Down

0 comments on commit 737144a

Please sign in to comment.