Allow passing undefined subSlug

This commit is contained in:
Sam Carlton 2022-06-03 16:15:38 -05:00
parent d2fe49b9b4
commit 91ed68e236

View file

@ -79,7 +79,7 @@ export function getPathPartsFromAstroRequest ( AstroRequest ) {
const [
routeType,
pathSlug,
subSlug = null
subSlug
] = getPartPartsFromUrl ( AstroRequest.url )
return {