fix bug when switching to a study chapter without analysis
This commit is contained in:
parent
1bb169efd5
commit
a55fb7dcc0
|
@ -77,8 +77,10 @@ export function view(ctrl: ServerEvalCtrl): VNode {
|
||||||
ctrl.lastPly(false);
|
ctrl.lastPly(false);
|
||||||
li.requestIdleCallback(() => {
|
li.requestIdleCallback(() => {
|
||||||
li.loadScript('/assets/javascripts/chart/acpl.js').then(() => {
|
li.loadScript('/assets/javascripts/chart/acpl.js').then(() => {
|
||||||
li.advantageChart(ctrl.root.data, ctrl.root.trans, vnode.elm as HTMLElement);
|
if (ctrl.root.data.analysis) {
|
||||||
ctrl.chartEl(vnode.elm as HTMLElement);
|
li.advantageChart(ctrl.root.data, ctrl.root.trans, vnode.elm as HTMLElement);
|
||||||
|
ctrl.chartEl(vnode.elm as HTMLElement);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue