Skip to content

Commit

Permalink
fix: fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
phodal committed Mar 16, 2020
1 parent c990a81 commit 2277687
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ export class MarkdownRenderComponent implements OnInit, OnChanges, AfterViewInit
for (const chartInstance of this.chartInstances) {
chartInstance.clear();
}
setTimeout(() => this.renderChat(), 50);
setTimeout(() => this.renderChart(), 50);
const items = this.tocify.tocItems;
this.tocStr = this.renderToc(items).join('');
if (this.tocEl && this.tocEl.nativeElement) {
Expand Down Expand Up @@ -301,7 +301,7 @@ export class MarkdownRenderComponent implements OnInit, OnChanges, AfterViewInit
return `<div class="markdown-mindmap ${currentMap.id}"></div>`;
}

private renderChat() {
private renderChart() {
if (this.chartInfos.length === 0) {
return;
}
Expand Down

0 comments on commit 2277687

Please sign in to comment.