From ebced0e902bc5abdda91a7ab0aa7780b3b03d9db Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Mon, 29 Mar 2021 23:37:35 +0300 Subject: [PATCH] System logs --- lib/ui/dashboard/dashboard_system_logs.dart | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/lib/ui/dashboard/dashboard_system_logs.dart b/lib/ui/dashboard/dashboard_system_logs.dart index 299f17b51..5a30d40ec 100644 --- a/lib/ui/dashboard/dashboard_system_logs.dart +++ b/lib/ui/dashboard/dashboard_system_logs.dart @@ -14,22 +14,10 @@ class DashboardSystemLogs extends StatelessWidget { @override Widget build(BuildContext context) { final company = viewModel.state.company; - //final systemLogs = company.systemLogs; - final clientId = viewModel.state.clientState.list.first; - final systemLogs = viewModel.state.clientState.map[clientId].systemLogs; - print('## systemLogs: $systemLogs'); + final systemLogs = company.systemLogs; return SystemLogViewer( systemLogs: systemLogs, ); - - return ScrollableListViewBuilder( - itemCount: systemLogs.length, - itemBuilder: (BuildContext context, index) { - return SystemLogViewer( - systemLogs: systemLogs, - ); - }, - ); } }