From c026f43fd93290c14828dc724c7aa9db1c0201d0 Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Tue, 25 Feb 2020 16:00:22 +0200 Subject: [PATCH] Reports --- lib/ui/reports/reports_screen.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ui/reports/reports_screen.dart b/lib/ui/reports/reports_screen.dart index a87048e0b..1f6b78c43 100644 --- a/lib/ui/reports/reports_screen.dart +++ b/lib/ui/reports/reports_screen.dart @@ -407,7 +407,7 @@ class _ReportDataTableState extends State { reportSettings.sortTotalsIndex ? reportSettings.sortTotalsIndex : null, - sortAscending: reportSettings.sortTotalsAscending, + sortAscending: reportSettings.sortTotalsAscending ?? true, columns: reportResult.totalColumns( context, (index, ascending) => @@ -432,7 +432,7 @@ class _ReportDataTableState extends State { sortColumnIndex: sortedColumns.contains(reportSettings.sortColumn) ? sortedColumns.indexOf(reportSettings.sortColumn) : null, - sortAscending: reportSettings.sortAscending, + sortAscending: reportSettings.sortAscending ?? true, columns: reportResult.tableColumns( context, (index, ascending) =>