Skip to content

Conversation

@arunapa
Copy link
Contributor

@arunapa arunapa commented Apr 19, 2023

  • Toggling Advanced switch caused page to break

  • Debug logs showed that the elastic search result string was not being rendered correctly as the properties were not valid, updated code to reflect the same

image

* Toggling Advanced switch caused page to break

* Debug logs showed that the properties were not valid, updated code to reflect the same
@arunapa arunapa added bug Something isn't working frontend Frontend specific (react) labels Apr 19, 2023
@arunapa arunapa added this to the Sprint April 28 2023 milestone Apr 19, 2023
@arunapa arunapa self-assigned this Apr 19, 2023
@arunapa arunapa requested a review from longshuicy as a code owner April 19, 2023 01:22
@arunapa arunapa linked an issue Apr 19, 2023 that may be closed by this pull request
@arunapa arunapa requested a review from lmarini April 19, 2023 02:07
…ic search results

* Elastic search results sometimes contains <mark> tags, which should be removed before being rendered on the frontend

* Not very clear on when exactly such tags are present, so for now I have added a try-catch function that removes the HTML tags if it is present

* Otherwise returns the original string
@longshuicy longshuicy merged commit 0aefcd1 into main Apr 21, 2023
arunapa added a commit that referenced this pull request Apr 27, 2023
* Fixed the props for search component

* Toggling Advanced switch caused page to break

* Debug logs showed that the properties were not valid, updated code to reflect the same

* Added try-catch function to handle inconsistent HTML content in elastic search results

* Elastic search results sometimes contains <mark> tags, which should be removed before being rendered on the frontend

* Not very clear on when exactly such tags are present, so for now I have added a try-catch function that removes the HTML tags if it is present

* Otherwise returns the original string

---------

Co-authored-by: Chen Wang <[email protected]>
@max-zilla max-zilla deleted the 437-advanced-search-page-error branch July 20, 2023 19:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working frontend Frontend specific (react)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Advanced search page error

3 participants