Skip to content
Snippets Groups Projects
Commit 22cae9f9 authored by jojohoch's avatar jojohoch
Browse files

Fix access to undefined value in math editor

parent 241967dd
No related branches found
No related tags found
No related merge requests found
......@@ -167,7 +167,9 @@ export class MathInputComponent implements AfterViewInit, OnChanges {
}
ngOnChanges(changes: SimpleChanges): void {
this.mathFieldElement.setValue(changes.value.currentValue, { mode: 'text' });
if (changes.value) {
this.mathFieldElement.setValue(changes.value.currentValue, { mode: 'text' });
}
}
setParseMode(event: MatButtonToggleChange) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment