mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
put updateParam back in
This commit is contained in:
parent
6143924ec6
commit
d9db3d1402
@ -64,6 +64,17 @@ export class SqlPart {
|
||||
this.params = part.params;
|
||||
}
|
||||
|
||||
updateParam(strValue, index) {
|
||||
// handle optional parameters
|
||||
if (strValue === '' && this.def.params[index].optional) {
|
||||
this.params.splice(index, 1);
|
||||
} else {
|
||||
this.params[index] = strValue;
|
||||
}
|
||||
|
||||
this.part.params = this.params;
|
||||
}
|
||||
|
||||
render(innerExpr: string) {
|
||||
return this.def.renderer(this, innerExpr);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user