mirror of https://github.com/grafana/grafana.git
Make targetHasScope reutnr boolean
This commit is contained in:
parent
f67adbfd33
commit
1de31f31df
|
@ -863,7 +863,7 @@ export class PrometheusDatasource
|
||||||
}
|
}
|
||||||
|
|
||||||
function targetHasScopes(target: PromQuery): boolean {
|
function targetHasScopes(target: PromQuery): boolean {
|
||||||
return target.scopes && target.scopes.length > 0;
|
return !!(target.scopes && target.scopes.length > 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
export function extractRuleMappingFromGroups(groups: RawRecordingRules[]): RuleQueryMapping {
|
export function extractRuleMappingFromGroups(groups: RawRecordingRules[]): RuleQueryMapping {
|
||||||
|
|
Loading…
Reference in New Issue