Skip to content

Commit 59f8fa7

Browse files
committed
Fix index ref
1 parent 29912e7 commit 59f8fa7

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

codegen/lib/connect.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,10 @@ export const connect = (
4040
file.layout = 'route.hbs'
4141
setRouteLayoutContext(file, namespace, blueprint)
4242

43-
routeIndexes[namespace.path] ??= new Set()
44-
routeIndexes[namespace.path]?.add(`${kebabCase(namespace.name)}.js`)
45-
4643
const parentPath = namespace.parentPath ?? ''
44+
4745
routeIndexes[parentPath] ??= new Set()
46+
routeIndexes[parentPath]?.add(`${kebabCase(namespace.name)}.js`)
4847
routeIndexes[parentPath]?.add(`${kebabCase(namespace.name)}/index.js`)
4948
}
5049

0 commit comments

Comments
 (0)