Fix single step proof tree

This commit is contained in:
Arne Keller 2021-07-10 12:47:40 +02:00
parent 8be024eb65
commit adb10a01aa

View File

@ -62,7 +62,7 @@ class MathjaxProofTree extends MathjaxAdapter {
if (this.shadowRoot !== null) {
console.time('stepCalculation');
const svg = this.shadowRoot.querySelector<SVGElement>("svg")!;
let root = this.shadowRoot.querySelector("#typicalc-prooftree")!.parentNode! as SVGElement;
let root = this.shadowRoot.querySelector("#typicalc-prooftree")! as SVGElement;
while (!root.getAttribute("semantics")) {
root = root.parentNode! as SVGElement;
}