소스 검색

fix(graph): removed angular copy that was no longer needed

Torkel Ödegaard 9 년 전
부모
커밋
9917de09af
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      public/app/plugins/panel/graph/module.ts

+ 1 - 1
public/app/plugins/panel/graph/module.ts

@@ -109,7 +109,7 @@ class GraphCtrl extends MetricsPanelCtrl {
   constructor($scope, $injector, private annotationsSrv) {
     super($scope, $injector);
 
-    _.defaults(this.panel, angular.copy(this.panelDefaults));
+    _.defaults(this.panel, this.panelDefaults);
     _.defaults(this.panel.tooltip, this.panelDefaults.tooltip);
     _.defaults(this.panel.grid, this.panelDefaults.grid);
     _.defaults(this.panel.legend, this.panelDefaults.legend);