fix variable interpolation
This commit is contained in:
@@ -239,6 +239,9 @@ export default class PostgresQuery {
|
||||
|
||||
query += ' ORDER BY time';
|
||||
|
||||
if (interpolate) {
|
||||
query = this.templateSrv.replace(query, this.scopedVars, this.interpolateQueryStr);
|
||||
}
|
||||
return query;
|
||||
}
|
||||
|
||||
|
||||
@@ -207,7 +207,7 @@ export class PostgresQueryCtrl extends QueryCtrl {
|
||||
segments.unshift(
|
||||
this.uiSegmentSrv.newSegment({
|
||||
type: 'template',
|
||||
value: '/^$' + variable.name + '$/',
|
||||
value: '$' + variable.name,
|
||||
expandable: true,
|
||||
})
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user