fix: order after refresh

This commit is contained in:
filippo-ferrari 2024-07-15 19:44:11 +02:00
parent 435ddd65a2
commit 7f27ff0b3d

View file

@ -276,7 +276,7 @@ public class ExpensesView extends Div implements BeforeEnterObserver {
}
private void refreshGrid() {
grid.setItems(this.expenseService.findAll());
grid.setItems(this.expenseService.findAllOrderByDateDescending());
grid.select(null);
grid.getDataProvider().refreshAll();
}