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 bug where search was performed on undefined string causing crash #4403
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hahah this was driving me nuts! Thanks for just fixing❤️
@norbye But, this check in |
ReactionPickerContent.tsx doesn't have access to
You're absolutely right, will fix:) while we're on it, it always checks for both undefined and empty string, so I might as well just set it to default to an empty string and as such the type won't allow undefined. Would've been so nice if the linter picked up comparisons between invalid values |
aef0463
to
7c0e91f
Compare
7c0e91f
to
3bb8546
Compare
3bb8546
to
1fedc97
Compare
1fedc97
to
c04c76b
Compare
c04c76b
to
91bc7e3
Compare
Description
The check was for
null
values, but after the refactor the value was set to undefined - which is correct typewise, but fucked up the search function.Removed the null-value check as a null-value should not be allowed with the current type (
string | undefined
).Result
No crash
Testing
Please describe what and how the changes have been tested, and provide instructions to reproduce if necessary.
Resolves ABA-746