openedx / frontend-app-discussions

A React-based micro frontend for the Open edX discussion forums.
GNU Affero General Public License v3.0
6 stars 62 forks source link

fix: typeset failed: window.MathJax.typesetClear is not a function #494

Closed ayesha-waris closed 1 year ago

ayesha-waris commented 1 year ago

INF-840 Description

Currently, Discussions MFE has many frequent JS errors on the new relic dashboard. This PR intends to resolve typeset failed: window.MathJax.typesetClear is not a function

Post-merge Checklist

codecov[bot] commented 1 year ago

Codecov Report

Patch coverage: 50.00% and project coverage change: -0.03 :warning:

Comparison is base (1117ed0) 90.80% compared to head (548f4d7) 90.77%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #494 +/- ## ========================================== - Coverage 90.80% 90.77% -0.03% ========================================== Files 162 162 Lines 3251 3252 +1 Branches 887 887 ========================================== Hits 2952 2952 - Misses 277 278 +1 Partials 22 22 ``` | [Impacted Files](https://codecov.io/gh/openedx/frontend-app-discussions/pull/494?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=openedx) | Coverage Δ | | |---|---|---| | [src/components/HTMLLoader.jsx](https://codecov.io/gh/openedx/frontend-app-discussions/pull/494?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=openedx#diff-c3JjL2NvbXBvbmVudHMvSFRNTExvYWRlci5qc3g=) | `80.95% <50.00%> (-4.05%)` | :arrow_down: | Help us with your feedback. Take ten seconds to tell us [how you rate us](https://about.codecov.io/nps?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=openedx). Have a feature suggestion? [Share it here.](https://app.codecov.io/gh/feedback/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=openedx)

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.