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)
This commit is contained in:
Christophe Furmaniak
2014-08-10 09:09:45 +02:00
committed by Torkel Ödegaard
parent 918ea5d12f
commit 21cf1f6c47
@@ -106,7 +106,7 @@ function (angular, _, kbn) {
}
function createMetricLabel(metric, tagData, options) {
if (options.alias) {
if (!_.isUndefined(options) && options.alias) {
return options.alias;
}