fix: graphite query ctrl, removed unnesserary check for empty paths, fixes #7740

This commit is contained in:
Torkel Ödegaard 2017-03-09 07:31:00 +01:00
parent 073dec8ba8
commit b272f5144a

View File

@ -128,6 +128,10 @@ export class GraphiteQueryCtrl extends QueryCtrl {
}
var path = this.getSegmentPathUpTo(fromIndex + 1);
if (path === "") {
return Promise.resolve();
}
return this.datasource.metricFindQuery(path).then(segments => {
if (segments.length === 0) {
if (path !== '') {