Skip to content

Commit 9811a9c

Browse files
committed
element=null on root redirect route to silence warnings
1 parent b8e9f38 commit 9811a9c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/routes.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ export const routes = createRoutesFromElements(
207207
</Route>
208208
</Route>
209209

210-
<Route index loader={() => redirect(pb.projects())} />
210+
<Route index loader={() => redirect(pb.projects())} element={null} />
211211

212212
<Route lazy={() => import('./layouts/SiloLayout').then(convert)}>
213213
<Route

0 commit comments

Comments
 (0)