From 7680e328c27747a789976f8f24bab7c63b4969ba Mon Sep 17 00:00:00 2001 From: "Ahmad K. Bawaneh" Date: Sun, 29 Oct 2023 11:11:27 +0300 Subject: [PATCH] fix #851 SummeryPlugin SummaryRow is not being cleared and is duplicated instead --- .../domino/ui/datatable/plugins/summary/SummaryPlugin.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/domino-ui/src/main/java/org/dominokit/domino/ui/datatable/plugins/summary/SummaryPlugin.java b/domino-ui/src/main/java/org/dominokit/domino/ui/datatable/plugins/summary/SummaryPlugin.java index aa93aa65e..91e9928e8 100644 --- a/domino-ui/src/main/java/org/dominokit/domino/ui/datatable/plugins/summary/SummaryPlugin.java +++ b/domino-ui/src/main/java/org/dominokit/domino/ui/datatable/plugins/summary/SummaryPlugin.java @@ -20,7 +20,6 @@ import java.util.Collection; import java.util.List; import org.dominokit.domino.ui.datatable.DataTable; -import org.dominokit.domino.ui.datatable.TableRow; import org.dominokit.domino.ui.datatable.plugins.DataTablePlugin; import org.dominokit.domino.ui.elements.TFootElement; import org.dominokit.domino.ui.utils.BaseDominoElement; @@ -43,7 +42,7 @@ */ public class SummaryPlugin implements DataTablePlugin { - private List> summaryRows = new ArrayList<>(); + private List> summaryRows = new ArrayList<>(); private DataTable dataTable; private TFootElement footer; @@ -82,6 +81,7 @@ public SummaryPlugin setSummaryRecords(Collection records) { SummaryRow summaryRow = new SummaryRow<>(recordsList.get(i), i, this.dataTable); summaryRow.render(); footer.appendChild(summaryRow); + summaryRows.add(summaryRow); } return this; }