From eb1f0116788e031ccaf4aaa0a07b30c89d524d46 Mon Sep 17 00:00:00 2001 From: Ezra Ellette Date: Tue, 16 Apr 2024 17:08:07 -0500 Subject: [PATCH] use waitForCollectionCallback no iter --- src/libs/SidebarUtils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libs/SidebarUtils.ts b/src/libs/SidebarUtils.ts index d83a8db3cd39..f63593f432ca 100644 --- a/src/libs/SidebarUtils.ts +++ b/src/libs/SidebarUtils.ts @@ -84,7 +84,7 @@ function getOrderedReportIDs( const parentReportActionsKey = `${ONYXKEYS.COLLECTION.REPORT_ACTIONS}${report.parentReportID}`; const parentReportActions = allReportActions?.[parentReportActionsKey]; - const reportActions = allReportActions?.[report.reportID] ?? {}; + const reportActions = allReportActions?.[`${ONYXKEYS.COLLECTION.REPORT_ACTIONS}${report.reportID}`] ?? {}; const parentReportAction = parentReportActions?.find((action) => action && action?.reportActionID === report.parentReportActionID); const doesReportHaveViolations = !!( betas?.includes(CONST.BETAS.VIOLATIONS) &&