瀏覽代碼

text panel: fix $apply already in progress error (#10486)

Alexander Zobnin 8 年之前
父節點
當前提交
1fdc24c412
共有 1 個文件被更改,包括 0 次插入3 次删除
  1. 0 3
      public/app/plugins/panel/text/module.ts

+ 0 - 3
public/app/plugins/panel/text/module.ts

@@ -66,9 +66,6 @@ export class TextPanelCtrl extends PanelCtrl {
   renderMarkdown(content) {
     if (!this.remarkable) {
       this.remarkable = new Remarkable();
-      this.$scope.$apply(() => {
-        this.updateContent(this.remarkable.render(content));
-      });
     }
 
     this.$scope.$applyAsync(() => {