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)
pull/666/head
Christophe Furmaniak 11 years ago
parent 3fffd08ae4
commit 675688cb80
  1. 2
      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;
}

Loading…
Cancel
Save