Skip to content

Commit

Permalink
Re-enable the lint disables
Browse files Browse the repository at this point in the history
  • Loading branch information
thienlnam committed Aug 7, 2024
1 parent 28e3d0e commit b3451be
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/pages/home/sidebar/SidebarLinksData.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit b3451be

Please sign in to comment.