diff --git a/public/app/plugins/datasource/graphite/query_ctrl.ts b/public/app/plugins/datasource/graphite/query_ctrl.ts index 724a8247f91..f9f34284971 100644 --- a/public/app/plugins/datasource/graphite/query_ctrl.ts +++ b/public/app/plugins/datasource/graphite/query_ctrl.ts @@ -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 !== '') {