From b272f5144a53e5b3c9f72dc8c32fe186400a1b5f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torkel=20=C3=96degaard?= Date: Thu, 9 Mar 2017 07:31:00 +0100 Subject: [PATCH] fix: graphite query ctrl, removed unnesserary check for empty paths, fixes #7740 --- public/app/plugins/datasource/graphite/query_ctrl.ts | 4 ++++ 1 file changed, 4 insertions(+) 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 !== '') {