diff --git a/src/pages/home/sidebar/SidebarLinksData.tsx b/src/pages/home/sidebar/SidebarLinksData.tsx index 2010a41390d6..e5a74db796d8 100644 --- a/src/pages/home/sidebar/SidebarLinksData.tsx +++ b/src/pages/home/sidebar/SidebarLinksData.tsx @@ -40,12 +40,13 @@ function SidebarLinksData({insets, isLoadingApp = true, onLinkClick, priorityMod const {orderedReportIDs, currentReportID, policyMemberAccountIDs} = useReportIDs(); useEffect(() => { - if (!activeWorkspaceID || !policyMemberAccountIDs) { + if (!activeWorkspaceID) { return; } Policy.openWorkspace(activeWorkspaceID, policyMemberAccountIDs); - }, [activeWorkspaceID, policyMemberAccountIDs]); + // eslint-disable-next-line react-compiler/react-compiler, react-hooks/exhaustive-deps + }, [activeWorkspaceID]); const isLoading = isLoadingApp; const currentReportIDRef = useRef(currentReportID);