Skip to content

Commit

Permalink
Fix Workspace - Infinite skeleton loading when member is removed from…
Browse files Browse the repository at this point in the history
… Workspace
  • Loading branch information
Amoralchik committed Feb 15, 2024
1 parent 36c7e8e commit e04c644
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/pages/home/ReportScreen.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit e04c644

Please sign in to comment.