From 8198ceaf92ed5e608c202d79f19581483ec480fa Mon Sep 17 00:00:00 2001 From: Vit Horacek Date: Fri, 5 Nov 2021 12:59:57 +0000 Subject: [PATCH] Veirfy report is not null --- src/pages/home/sidebar/SidebarLinks.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/home/sidebar/SidebarLinks.js b/src/pages/home/sidebar/SidebarLinks.js index f33265351225..7320895074ee 100644 --- a/src/pages/home/sidebar/SidebarLinks.js +++ b/src/pages/home/sidebar/SidebarLinks.js @@ -110,7 +110,7 @@ class SidebarLinks extends React.Component { if (reports.length === 0) { return []; } - const unreadReports = _.filter(reports, report => report.unreadActionCount > 0); + const unreadReports = _.filter(reports, report => report && report.unreadActionCount > 0); return unreadReports; }