Enable benchmark route types

This commit is contained in:
Sam Carlton 2022-05-17 16:21:11 -05:00
parent ddfd3e9457
commit 8cc742626b

View file

@ -65,7 +65,9 @@ export function getRouteType ( routeString ) {
// Remove first slash and split by remaining
// slashes to get first part of route
const [ routeType ] = routeString.substring(1).split('/')
const [ routeType, , subType = null ] = routeString.substring(1).split('/')
if ( subType === 'benchmarks' ) return 'benchmarks'
return routeType
}