Browse Source

initialize empty variables array in constructor so that datasources can use the array in explore

Erik Sundell 7 năm trước cách đây
mục cha
commit
45fbbe8021
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      public/app/features/templating/template_srv.ts

+ 1 - 0
public/app/features/templating/template_srv.ts

@@ -17,6 +17,7 @@ export class TemplateSrv {
   constructor() {
     this.builtIns['__interval'] = { text: '1s', value: '1s' };
     this.builtIns['__interval_ms'] = { text: '100', value: '100' };
+    this.variables = [];
   }
 
   init(variables) {