catalog: fix EntityLayout TabbedLayout route path matching
Co-authored-by: blam <ben@blam.sh>
This commit is contained in:
@@ -34,7 +34,7 @@ export function useSelectedSubRoute(
|
||||
|
||||
const [matchedRoute] = matchRoutes(routes, `/${params['*']}`) ?? [];
|
||||
const foundIndex = matchedRoute
|
||||
? subRoutes.findIndex(t => t.path === matchedRoute.route.path)
|
||||
? subRoutes.findIndex(t => `${t.path}/*` === matchedRoute.route.path)
|
||||
: 0;
|
||||
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user