Jelajahi Sumber

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

Erik Sundell 7 tahun lalu
induk
melakukan
45fbbe8021
1 mengubah file dengan 1 tambahan dan 0 penghapusan
  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) {