catalog: fix EntityLayout TabbedLayout route path matching

Co-authored-by: blam <ben@blam.sh>
This commit is contained in:
Patrik Oldsberg
2020-12-22 19:13:32 +01:00
parent c199963a08
commit b0e2e0f1e4
@@ -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 {