From 231a32c4a3dfa653e5fe3650502453822e8586ea Mon Sep 17 00:00:00 2001 From: Patrick Hemmer Date: Tue, 26 May 2020 00:38:49 -0400 Subject: [PATCH] Postgres: Fix add button (#25087) Previously the add button on the postgres UI would break after the first usage. This was due to the button not being fully reset after use. --- public/app/plugins/datasource/postgres/query_ctrl.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/public/app/plugins/datasource/postgres/query_ctrl.ts b/public/app/plugins/datasource/postgres/query_ctrl.ts index 47bd8af72e3..49734f21192 100644 --- a/public/app/plugins/datasource/postgres/query_ctrl.ts +++ b/public/app/plugins/datasource/postgres/query_ctrl.ts @@ -208,10 +208,12 @@ export class PostgresQueryCtrl extends QueryCtrl { } } - resetPlusButton(button: { html: any; value: any }) { + resetPlusButton(button: { html: any; value: any; type: any; fake: any }) { const plusButton = this.uiSegmentSrv.newPlusButton(); button.html = plusButton.html; button.value = plusButton.value; + button.type = plusButton.type; + button.fake = plusButton.fake; } getTableSegments() {