generouted
Advanced tools
Comparing version 1.12.4 to 1.12.5
{ | ||
"name": "generouted", | ||
"version": "1.12.4", | ||
"version": "1.12.5", | ||
"description": "Generated client-side file-based routes for Vite", | ||
@@ -5,0 +5,0 @@ "author": "Omar Elhawary <oedotme@gmail.com> (https://omarelhawary.me)", |
@@ -55,3 +55,3 @@ export const patterns = { | ||
const found = current?.find((route) => route.path === path || route.id === path) | ||
const props = group ? { id: path } : { path } | ||
const props = group ? (route?.component ? { id: path, path: '/' } : { id: path }) : { path } | ||
if (found) found.children ??= [] | ||
@@ -58,0 +58,0 @@ else current?.[insert]({ ...props, children: [] }) |
23747