Sfoglia il codice sorgente

fix timeColumnType assignment

Sven Klemm 7 anni fa
parent
commit
c1890dbb6d
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      public/app/plugins/datasource/postgres/query_ctrl.ts

+ 1 - 1
public/app/plugins/datasource/postgres/query_ctrl.ts

@@ -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();