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:
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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user