Commit c1890dbb by Sven Klemm

fix timeColumnType assignment

parent 9699d7a1
...@@ -196,7 +196,7 @@ export class PostgresQueryCtrl extends QueryCtrl { ...@@ -196,7 +196,7 @@ export class PostgresQueryCtrl extends QueryCtrl {
this.target.timeColumn = this.timeColumnSegment.value; this.target.timeColumn = this.timeColumnSegment.value;
this.datasource.metricFindQuery(this.metaBuilder.buildDatatypeQuery(this.target.timeColumn)).then(result => { this.datasource.metricFindQuery(this.metaBuilder.buildDatatypeQuery(this.target.timeColumn)).then(result => {
if (result.length === 1) { if (result.length === 1) {
this.target.timeColumnType = result[0]; this.target.timeColumnType = result[0].text;
} }
}); });
this.panelCtrl.refresh(); this.panelCtrl.refresh();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment