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 error when clearing content chooser input #944

Merged
merged 1 commit into from
Mar 28, 2023

Conversation

wesleybl
Copy link
Member

When we cleared the filter, the contents of the previous filter and the amount of items found were still displayed.

This was due to a Javascript error. The variable portal_url was not defined inside the function that is called when clicking on the clear button. Then we use this.portal_url, to use the class variable. For this to be considered the class, it was necessary to use arrow functions.

Fixes #942

When we cleared the filter, the contents of the previous filter and the
amount of items found were still displayed.

This was due to a Javascript error. The variable portal_url was not
defined inside the function that is called when clicking on the clear
button. Then we use this.portal_url, to use the class variable. For this
to be considered the class, it was necessary to use arrow functions.
@codecov-commenter
Copy link

codecov-commenter commented Mar 27, 2023

Codecov Report

Merging #944 (c02dc8f) into master (7faaa51) will not change coverage.
The diff coverage is n/a.

📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #944   +/-   ##
=======================================
  Coverage   92.85%   92.85%           
=======================================
  Files          49       49           
  Lines        2913     2913           
=======================================
  Hits         2705     2705           
  Misses        208      208           

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 7faaa51...c02dc8f. Read the comment docs.

@wesleybl wesleybl requested a review from rodfersou March 27, 2023 20:43
@wesleybl wesleybl merged commit 5cfb7a8 into master Mar 28, 2023
@wesleybl wesleybl deleted the fix_content_chooser_clean_filter branch March 28, 2023 17:25
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.

The clear filter button in the content chooser doesn't work
2 participants