From 479658489ad7a215ee8f06f861b3a0374534c682 Mon Sep 17 00:00:00 2001 From: Alexander Zobnin Date: Mon, 29 Jan 2018 17:17:27 +0300 Subject: [PATCH] fix: remove repeated rows when repeat was disabled. (#10653) --- public/app/features/dashboard/dashgrid/DashboardRow.tsx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/public/app/features/dashboard/dashgrid/DashboardRow.tsx b/public/app/features/dashboard/dashgrid/DashboardRow.tsx index fad7c120f65..7a4d6cf8070 100644 --- a/public/app/features/dashboard/dashgrid/DashboardRow.tsx +++ b/public/app/features/dashboard/dashgrid/DashboardRow.tsx @@ -27,6 +27,7 @@ export class DashboardRow extends React.Component { this.toggle = this.toggle.bind(this); this.openSettings = this.openSettings.bind(this); this.delete = this.delete.bind(this); + this.update = this.update.bind(this); } toggle() { @@ -37,13 +38,18 @@ export class DashboardRow extends React.Component { }); } + update() { + this.dashboard.processRepeats(); + this.forceUpdate(); + } + openSettings() { appEvents.emit('show-modal', { templateHtml: ``, modalClass: 'modal--narrow', model: { row: this.props.panel, - onUpdated: this.forceUpdate.bind(this), + onUpdated: this.update.bind(this), }, }); }