From 34dc69266ddd37fcd7dc67c89dfbc5f03e418e9b Mon Sep 17 00:00:00 2001 From: Sibtain Ali Date: Thu, 25 Apr 2024 03:39:59 +0500 Subject: [PATCH] typecheck fix --- src/libs/ReportUtils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libs/ReportUtils.ts b/src/libs/ReportUtils.ts index 0c6188aea188..fe87d95d5d16 100644 --- a/src/libs/ReportUtils.ts +++ b/src/libs/ReportUtils.ts @@ -6117,7 +6117,7 @@ function createDraftTransactionAndNavigateToParticipantSelector(transactionID: s mccGroup, } as Transaction); - const filteredPolicies = Object.values(allPolicies).filter( + const filteredPolicies = Object.values(allPolicies ?? {}).filter( (policy) => policy?.type !== CONST.POLICY.TYPE.PERSONAL && policy?.pendingAction !== CONST.RED_BRICK_ROAD_PENDING_ACTION.DELETE, );