Skip to content

Commit

Permalink
Merge pull request #146 from rtritto/improve-renderWrappers
Browse files Browse the repository at this point in the history
refactor: remove useless default value to renderWrappers
  • Loading branch information
magne4000 authored Dec 20, 2024
2 parents be7576e + 56c629a commit d83214f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vike-solid/integration/getPageElement.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ function Wrapper(props: { children: JSX.Element }) {
);
});

const renderWrappers = (i: number = 0) => {
const renderWrappers = (i: number) => {
let item = wrappers[i]; // Assumes reversed, and must access with `[i]` instead of `.at(i)` otherwise, wrapper's states are not persisted.

if (!item) return props.children;
Expand Down

0 comments on commit d83214f

Please sign in to comment.