mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Graphite: Fixed cannot read finally of undefiend (#23512)
This commit is contained in:
parent
cf1ebd5a3d
commit
61460ea3a2
@ -75,12 +75,12 @@ export class GraphiteQueryCtrl extends QueryCtrl {
|
||||
|
||||
checkOtherSegments(fromIndex: number, modifyLastSegment = true) {
|
||||
if (this.queryModel.segments.length === 1 && this.queryModel.segments[0].type === 'series-ref') {
|
||||
return;
|
||||
return Promise.resolve();
|
||||
}
|
||||
|
||||
if (fromIndex === 0) {
|
||||
this.addSelectMetricSegment();
|
||||
return;
|
||||
return Promise.resolve();
|
||||
}
|
||||
|
||||
const path = this.queryModel.getSegmentPathUpTo(fromIndex + 1);
|
||||
|
Loading…
Reference in New Issue
Block a user