From 3d5e8b75f556cf956f03ca02738948e3ddc49e09 Mon Sep 17 00:00:00 2001 From: Matthias Wilhelm Date: Fri, 21 Aug 2020 16:52:49 +0200 Subject: [PATCH] Force rerendering of table row --- .../angular/doc_table/components/table_row.ts | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/plugins/discover/public/application/angular/doc_table/components/table_row.ts b/src/plugins/discover/public/application/angular/doc_table/components/table_row.ts index e7fafde2e68d0..ab8c5cc059aed 100644 --- a/src/plugins/discover/public/application/angular/doc_table/components/table_row.ts +++ b/src/plugins/discover/public/application/angular/doc_table/components/table_row.ts @@ -103,9 +103,12 @@ export function createTableRowDirective($compile: ng.ICompileService, $httpParam $compile($detailsTr)($detailsScope); }; - $scope.$watchMulti(['indexPattern.timeFieldName', 'row.highlight', '[]columns'], () => { - createSummaryRow($scope.row); - }); + $scope.$watchMulti( + ['indexPattern.timeFieldName', 'row.highlight', '[]columns', 'row'], + () => { + createSummaryRow($scope.row); + } + ); $scope.inlineFilter = function inlineFilter($event: any, type: string) { const column = $($event.target).data().column; @@ -174,6 +177,7 @@ export function createTableRowDirective($compile: ng.ICompileService, $httpParam let $cells = $el.children(); newHtmls.forEach(function (html, i) { const $cell = $cells.eq(i); + if ($cell.data('discover:html') === html) return; const reuse = find($cells.slice(i + 1), function (cell: any) {