Skip to content

Commit

Permalink
look at path directly instead
Browse files Browse the repository at this point in the history
  • Loading branch information
brophdawg11 committed Oct 21, 2022
1 parent c02ab41 commit ce47c0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/router/utils.ts
Expand Up @@ -863,7 +863,7 @@ export function getPathContributingMatches<
>(matches: T[]) {
return matches.filter(
(match, index) =>
index === 0 || match.pathnameBase !== matches[index - 1].pathnameBase
index === 0 || (match.route.path && match.route.path.length > 0)
);
}

Expand Down

0 comments on commit ce47c0a

Please sign in to comment.