Преглед изворни кода

fix #660 by checking if options is undefined

- a complete fix with a consistent support of alias in all use cases is not obvious (see #660 for explanations)
Christophe Furmaniak пре 11 година
родитељ
комит
21cf1f6c47
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      src/app/services/opentsdb/opentsdbDatasource.js

+ 1 - 1
src/app/services/opentsdb/opentsdbDatasource.js

@@ -106,7 +106,7 @@ function (angular, _, kbn) {
     }
 
     function createMetricLabel(metric, tagData, options) {
-      if (options.alias) {
+      if (!_.isUndefined(options) && options.alias) {
         return options.alias;
       }