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: prevent error when there are no results for a given filter #1257

Conversation

germanolleunlp
Copy link
Contributor

@germanolleunlp germanolleunlp commented Dec 19, 2023

Copy link
Contributor

@schenedx schenedx left a comment

Choose a reason for hiding this comment

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

Either way, I understand why we need this change.

@@ -15,7 +15,7 @@ const iconTypeMapping = {

const defaultIcon = Article;

const CoursewareSearchResults = ({ results }) => {
const CoursewareSearchResults = ({ results = [] }) => {
Copy link
Contributor

Choose a reason for hiding this comment

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

Could we develop a test case for this?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

added ✅

Copy link

codecov bot commented Dec 19, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (684ac49) 87.97% compared to head (ebff1e8) 87.98%.
Report is 1 commits behind head on master.

❗ Current head ebff1e8 differs from pull request most recent head fbdef5f. Consider uploading reports for the commit fbdef5f to get more accurate results

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1257   +/-   ##
=======================================
  Coverage   87.97%   87.98%           
=======================================
  Files         276      276           
  Lines        4742     4745    +3     
  Branches     1193     1197    +4     
=======================================
+ Hits         4172     4175    +3     
  Misses        554      554           
  Partials       16       16           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@germanolleunlp germanolleunlp force-pushed the KBK-79-understandable-result-section-naming-for-learners branch from ebff1e8 to fbdef5f Compare December 19, 2023 15:52
@germanolleunlp germanolleunlp merged commit 06d79ce into master Dec 19, 2023
4 checks passed
@germanolleunlp germanolleunlp deleted the KBK-79-understandable-result-section-naming-for-learners branch December 19, 2023 16:00
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.

2 participants