Commit 21cf1f6c by Christophe Furmaniak Committed by Torkel Ödegaard

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)
parent 918ea5d1
...@@ -106,7 +106,7 @@ function (angular, _, kbn) { ...@@ -106,7 +106,7 @@ function (angular, _, kbn) {
} }
function createMetricLabel(metric, tagData, options) { function createMetricLabel(metric, tagData, options) {
if (options.alias) { if (!_.isUndefined(options) && options.alias) {
return options.alias; return options.alias;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment