Skip to content

Commit

Permalink
cleanup: remove timings
Browse files Browse the repository at this point in the history
  • Loading branch information
kosmydel committed Jun 12, 2024
1 parent 25df8db commit 11af4fd
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions src/hooks/useReportIDs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -129,9 +129,8 @@ function ReportIDsContextProvider({
const policyMemberAccountIDs = getPolicyEmployeeListByIdWithoutCurrentUser(policies, activeWorkspaceID, accountID);

const getOrderedReportIDs = useCallback(
(currentReportID?: string) => {
console.time('getOrderedReportIDs');
const result = SidebarUtils.getOrderedReportIDs(
(currentReportID?: string) =>
SidebarUtils.getOrderedReportIDs(
currentReportID ?? null,
chatReports,
betas,
Expand All @@ -141,10 +140,7 @@ function ReportIDsContextProvider({
transactionViolations,
activeWorkspaceID,
policyMemberAccountIDs,
);
console.timeEnd('getOrderedReportIDs');
return result;
},
),
// we need reports draft in deps array for reloading of list when reportsDrafts will change
// eslint-disable-next-line react-hooks/exhaustive-deps
[chatReports, betas, policies, priorityMode, allReportActions, transactionViolations, activeWorkspaceID, policyMemberAccountIDs, reportsDrafts],
Expand Down

0 comments on commit 11af4fd

Please sign in to comment.