mirror of
https://github.com/grafana/grafana.git
synced 2025-02-10 07:35:45 -06:00
build: fixed unit test failure
This commit is contained in:
parent
ff1b71bc20
commit
a00af85f36
@ -121,7 +121,11 @@ export default class GraphiteQuery {
|
||||
}
|
||||
|
||||
hasSelectMetric() {
|
||||
return this.segments[this.segments.length - 1].value === 'select metric';
|
||||
if (this.segments.length > 0) {
|
||||
return this.segments[this.segments.length - 1].value === 'select metric';
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
addFunction(newFunc) {
|
||||
|
Loading…
Reference in New Issue
Block a user