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: Contextual excerpt crash on tag search #2529

Merged
merged 2 commits into from
Dec 17, 2020

Conversation

codebykat
Copy link
Member

Fix

We need to guard against getTerms returning an empty array, which it does if the only search terms are tags (e.g. tag:testing).

Test

  1. Search for text that will bring up tag suggestions
  2. Click on a suggested tag
  3. The app should not crash

Release

Updated: Fixed a crash when clicking on a tag suggestion from search

@codebykat codebykat requested a review from a team December 17, 2020 04:22
@codebykat codebykat added this to the 2.4.0 ❄️ milestone Dec 17, 2020
@codebykat codebykat self-assigned this Dec 17, 2020
@codebykat codebykat merged commit 4230d90 into release/2.4.0 Dec 17, 2020
codebykat added a commit that referenced this pull request Dec 17, 2020
* guard against crash from tag searches

* release notes
@codebykat codebykat deleted the fix/crash-on-tag-suggestion branch December 17, 2020 17:29
@codebykat codebykat mentioned this pull request Jan 8, 2021
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.

None yet

2 participants