mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Graphite: remove feature that moves alias function last (#17791)
This commit is contained in:
parent
5f3a71bc7a
commit
013a1abb6f
@ -131,18 +131,6 @@ export default class GraphiteQuery {
|
|||||||
|
|
||||||
addFunction(newFunc) {
|
addFunction(newFunc) {
|
||||||
this.functions.push(newFunc);
|
this.functions.push(newFunc);
|
||||||
this.moveAliasFuncLast();
|
|
||||||
}
|
|
||||||
|
|
||||||
moveAliasFuncLast() {
|
|
||||||
const aliasFunc: any = _.find(this.functions, func => {
|
|
||||||
return func.def.name.startsWith('alias');
|
|
||||||
});
|
|
||||||
|
|
||||||
if (aliasFunc) {
|
|
||||||
this.functions = _.without(this.functions, aliasFunc);
|
|
||||||
this.functions.push(aliasFunc);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
addFunctionParameter(func, value) {
|
addFunctionParameter(func, value) {
|
||||||
|
Loading…
Reference in New Issue
Block a user