Fix for invoice history list

This commit is contained in:
Hillel Coren 2023-11-07 17:41:02 +02:00
parent bcd84f1343
commit 1d435e7fc6
1 changed files with 1 additions and 1 deletions

View File

@ -44,7 +44,7 @@ class _InvoiceViewHistoryState extends State<InvoiceViewHistory> {
} }
final activityList = invoice.activities final activityList = invoice.activities
.where((activity) => activity.history != null) .where((activity) => (activity.history?.id ?? '').isNotEmpty)
.toList(); .toList();
activityList.sort((a, b) => b.updatedAt.compareTo(a.updatedAt)); activityList.sort((a, b) => b.updatedAt.compareTo(a.updatedAt));