Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Fix navigate bug from nested index routes #8965

Merged
merged 1 commit into from
Jun 10, 2022

Conversation

brophdawg11
Copy link
Contributor

Follow up to #8954

);

if (matches.length > 0 && matches[matches.length - 1].route.index) {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was incorrect and should have been checking pathContributingMatches instead of matches, but instead we can just lump the index check into the filter above

@david-crespo
Copy link
Contributor

Thanks! I agree that combining the whole filter into one line is less error-prone.

@ryanflorence ryanflorence merged commit 5ec32d2 into dev Jun 10, 2022
@ryanflorence ryanflorence deleted the brophdawg11/navigate-fix branch June 10, 2022 16:00
brophdawg11 pushed a commit that referenced this pull request Mar 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants