Skip to content

Commit

Permalink
#932 - fix
Browse files Browse the repository at this point in the history
  • Loading branch information
FrankHossfeld committed May 15, 2024
1 parent 87f9675 commit d270a47
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,10 @@ public void onFooterAdded(DataTable<T> datatable) {
public SummaryPlugin<T, S> setSummaryRecords(Collection<S> records) {
summaryRows.forEach(BaseDominoElement::remove);
summaryRows.clear();
if (this.dataTable.getRows()
.isEmpty()) {
return this;
}
List<S> recordsList = new ArrayList<>(records);
for (int i = 0; i < recordsList.size(); i++) {
SummaryRow<T, S> summaryRow = new SummaryRow<>(recordsList.get(i), i, this.dataTable);
Expand Down

0 comments on commit d270a47

Please sign in to comment.