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

Merge pull request #3880 from vitorboschi/fix3877

add default value for fill policy
Daniel Lee 10 лет назад
Родитель
Сommit
2897f618a6
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      public/app/plugins/datasource/opentsdb/datasource.js

+ 1 - 1
public/app/plugins/datasource/opentsdb/datasource.js

@@ -276,7 +276,7 @@ function (angular, _, dateMath) {
 
         query.downsample = interval + "-" + target.downsampleAggregator;
 
-        if (target.downsampleFillPolicy !== "none") {
+        if (target.downsampleFillPolicy && target.downsampleFillPolicy !== "none") {
           query.downsample += "-" + target.downsampleFillPolicy;
         }
       }