Merge pull request #23796 from edx/saad/PROD-999-fix-js-flaky-test

[PROD-999] - Fixing root cause of flaky JS test for discussions.
This commit is contained in:
Saad Yousaf
2020-04-24 14:23:26 +05:00
committed by GitHub

View File

@@ -485,7 +485,7 @@
};
DiscussionUtil.typesetMathJax = function(element) {
if (typeof MathJax !== 'undefined' && MathJax !== null && MathJax.Hub !== 'undefined') {
if (typeof MathJax !== 'undefined' && MathJax !== null && typeof MathJax.Hub !== 'undefined') {
MathJax.Hub.Queue(['Typeset', MathJax.Hub, element[0]]);
}
};