|
@@ -42,7 +42,7 @@ export default class RevisionBody extends React.PureComponent {
|
|
|
// So, before MathJax is initialized, execute renderMathJaxWithDebounce again.
|
|
// So, before MathJax is initialized, execute renderMathJaxWithDebounce again.
|
|
|
// Avoiding initialization of MathJax of draw.io solves the problem.
|
|
// Avoiding initialization of MathJax of draw.io solves the problem.
|
|
|
// refs: https://github.com/jgraph/drawio/pull/831
|
|
// refs: https://github.com/jgraph/drawio/pull/831
|
|
|
- if (MathJax != null) {
|
|
|
|
|
|
|
+ if (MathJax != null && this.element != null) {
|
|
|
MathJax.typesetPromise([this.element]);
|
|
MathJax.typesetPromise([this.element]);
|
|
|
}
|
|
}
|
|
|
else {
|
|
else {
|