From e04c644a009e43daed7236f1a1d237f0567c4c48 Mon Sep 17 00:00:00 2001 From: Amoralchik Date: Thu, 15 Feb 2024 15:42:00 +0200 Subject: [PATCH] Fix Workspace - Infinite skeleton loading when member is removed from Workspace --- src/pages/home/ReportScreen.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/pages/home/ReportScreen.js b/src/pages/home/ReportScreen.js index 8741006efab1..3e067d5c8756 100644 --- a/src/pages/home/ReportScreen.js +++ b/src/pages/home/ReportScreen.js @@ -282,7 +282,8 @@ function ReportScreen({ const didSubscribeToReportLeavingEvents = useRef(false); useEffect(() => { - if (!report || !report.reportID || shouldHideReport) { + if (!report.reportID || shouldHideReport) { + wasReportAccessibleRef.current = false; return; } wasReportAccessibleRef.current = true;