Fix for invoice history list
This commit is contained in:
parent
bcd84f1343
commit
1d435e7fc6
|
|
@ -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));
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue