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: Wrong type in category_id param input #304

Merged
merged 5 commits into from
Aug 5, 2024
Merged

Conversation

Lhcfl
Copy link
Contributor

@Lhcfl Lhcfl commented Aug 5, 2024

What does this fix?

We will dasherize category_id. The dasherize function accepts a string,
but we don't type-check it, so the default null may be passed in. This
will cause a type error and crash the front-end.

This commit fixes this situation.

See /t/134508

Screenshot

image

Lhcfl added 5 commits August 5, 2024 15:44
We will dasherize category_id. The dasherize function accepts a string,
but we don't type-check it, so the default null may be passed in. This
will cause a type error and crash the front-end.
Copy link
Contributor

@nattsw nattsw left a comment

Choose a reason for hiding this comment

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

Nice! Thanks for the test!

@Lhcfl Lhcfl merged commit 41dfa21 into main Aug 5, 2024
5 checks passed
@Lhcfl Lhcfl deleted the fix-category-input branch August 5, 2024 12:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants