From 28f97a2450f4c68acf82f41cce9321cb40aa8990 Mon Sep 17 00:00:00 2001 From: Sven Klemm Date: Thu, 16 Aug 2018 13:23:38 +0200 Subject: [PATCH] update persisted parts on param change --- public/app/plugins/datasource/postgres/query_ctrl.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/public/app/plugins/datasource/postgres/query_ctrl.ts b/public/app/plugins/datasource/postgres/query_ctrl.ts index 069dcca2fcf..1d82b36c674 100644 --- a/public/app/plugins/datasource/postgres/query_ctrl.ts +++ b/public/app/plugins/datasource/postgres/query_ctrl.ts @@ -381,6 +381,7 @@ export class PostgresQueryCtrl extends QueryCtrl { } } case 'part-param-changed': { + this.updatePersistedParts(); this.panelCtrl.refresh(); break; } @@ -404,6 +405,7 @@ export class PostgresQueryCtrl extends QueryCtrl { .catch(this.handleQueryError.bind(this)); } case 'part-param-changed': { + this.updatePersistedParts(); this.panelCtrl.refresh(); break; } @@ -497,6 +499,7 @@ export class PostgresQueryCtrl extends QueryCtrl { } } case 'part-param-changed': { + this.updatePersistedParts(); this.datasource.metricFindQuery(this.metaBuilder.buildDatatypeQuery(part.params[0])).then((d: any) => { if (d.length === 1) { part.datatype = d[0].text;