Просмотр исходного кода

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

Erik Sundell 7 лет назад
Родитель
Сommit
45fbbe8021
1 измененных файлов с 1 добавлено и 0 удалено
  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) {