Commit 61460ea3 by Torkel Ödegaard Committed by GitHub

Graphite: Fixed cannot read finally of undefiend (#23512)

parent cf1ebd5a
...@@ -75,12 +75,12 @@ export class GraphiteQueryCtrl extends QueryCtrl { ...@@ -75,12 +75,12 @@ export class GraphiteQueryCtrl extends QueryCtrl {
checkOtherSegments(fromIndex: number, modifyLastSegment = true) { checkOtherSegments(fromIndex: number, modifyLastSegment = true) {
if (this.queryModel.segments.length === 1 && this.queryModel.segments[0].type === 'series-ref') { if (this.queryModel.segments.length === 1 && this.queryModel.segments[0].type === 'series-ref') {
return; return Promise.resolve();
} }
if (fromIndex === 0) { if (fromIndex === 0) {
this.addSelectMetricSegment(); this.addSelectMetricSegment();
return; return Promise.resolve();
} }
const path = this.queryModel.getSegmentPathUpTo(fromIndex + 1); const path = this.queryModel.getSegmentPathUpTo(fromIndex + 1);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment