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

chore: fix type error in preset chooser component #282

Merged
merged 2 commits into from
Apr 25, 2024

Conversation

EvanHahn
Copy link
Contributor

TypeScript complained that routes[currentIndex - 1] could be undefined, even though logically it should be defined.

To appease TypeScript, I tweaked the code to address this case.

TypeScript complained that `routes[currentIndex - 1]` could be
undefined, even though logically it should be defined.

To appease TypeScript, I tweaked the code to address this case.
@EvanHahn EvanHahn merged commit ce19fc4 into main Apr 25, 2024
3 checks passed
@EvanHahn EvanHahn deleted the fix-type-error-in-preset-chooser branch April 25, 2024 19:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant