Skip to content

Commit 15bd18f

Browse files
committed
removing children when report is updated
* otherwise items will always be appended
1 parent f5f7e67 commit 15bd18f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/de/doubleslash/keeptime/view/ReportController.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ protected void updateItem(final TableRow item, final boolean empty) {
193193

194194
private void updateReport(final LocalDate dateToShow) {
195195
this.currentReportDate = dateToShow;
196-
196+
rootItem.getChildren().clear();
197197
reportRoot.requestFocus();
198198

199199
this.currentDayLabel.setText(DateFormatter.toDayDateString(this.currentReportDate));

0 commit comments

Comments
 (0)