Skip to content

Commit

Permalink
refactor: remove useless default value to renderWrappers
Browse files Browse the repository at this point in the history
  • Loading branch information
rtritto committed Dec 19, 2024
1 parent be7576e commit 56c629a
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 56c629a

Please sign in to comment.