From 9d238ba4dde2866ce058d206d55c236abfdab95d Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Tue, 23 Jan 2024 15:17:04 +0200 Subject: [PATCH] Fix for system logs viewer for failed emails --- lib/ui/app/system_log_viewer.dart | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/lib/ui/app/system_log_viewer.dart b/lib/ui/app/system_log_viewer.dart index e9bccd2f1..694e961b4 100644 --- a/lib/ui/app/system_log_viewer.dart +++ b/lib/ui/app/system_log_viewer.dart @@ -90,13 +90,18 @@ class _SystemLogViewerState extends State { }, isExpanded: _isExpanded[systemLog.id] == true, body: _isExpanded[systemLog.id] == true - ? Container( - color: Colors.white, - child: Padding( - padding: const EdgeInsets.symmetric(vertical: 8), - child: JsonViewer(logs ?? {}), - ), - ) + ? logs == null + ? Padding( + child: Text(systemLog.log), + padding: EdgeInsets.symmetric( + horizontal: 16, vertical: 10)) + : Container( + color: Colors.white, + child: Padding( + padding: const EdgeInsets.symmetric(vertical: 8), + child: JsonViewer(logs), + ), + ) : SizedBox(), ); }).toList(),