From 56c629ac5be2d4d218e4451107f5d205b60cfa12 Mon Sep 17 00:00:00 2001 From: rtritto Date: Thu, 19 Dec 2024 19:59:32 +0100 Subject: [PATCH] refactor: remove useless default value to renderWrappers --- packages/vike-solid/integration/getPageElement.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/vike-solid/integration/getPageElement.tsx b/packages/vike-solid/integration/getPageElement.tsx index 2fa403b..50ebebf 100644 --- a/packages/vike-solid/integration/getPageElement.tsx +++ b/packages/vike-solid/integration/getPageElement.tsx @@ -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;