File tree Expand file tree Collapse file tree
src/libs/OptionsListUtils Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -267,7 +267,6 @@ Onyx.connect({
267267 allSortedReportActions [ reportID ] = sortedReportActions ;
268268 const report = allReports ?. [ `${ ONYXKEYS . COLLECTION . REPORT } ${ reportID } ` ] ;
269269 const chatReport = allReports ?. [ `${ ONYXKEYS . COLLECTION . REPORT } ${ report ?. chatReportID } ` ] ;
270- const policy = allPolicies ?. [ `${ ONYXKEYS . COLLECTION . POLICY } ${ report ?. policyID } ` ] ;
271270
272271 // If the report is a one-transaction report and has , we need to return the combined reportActions so that the LHN can display modifications
273272 // to the transaction thread or the report itself
@@ -293,7 +292,7 @@ Onyx.connect({
293292 const reportActionsForDisplay = sortedReportActions . filter (
294293 ( reportAction , actionKey ) =>
295294 ( ! ( isWhisperAction ( reportAction ) && ! isReportPreviewAction ( reportAction ) && ! isMoneyRequestAction ( reportAction ) ) || isActionableMentionWhisper ( reportAction ) ) &&
296- shouldReportActionBeVisible ( reportAction , actionKey , isWriteActionAllowed , policy ) &&
295+ shouldReportActionBeVisible ( reportAction , actionKey , isWriteActionAllowed ) &&
297296 reportAction . actionName !== CONST . REPORT . ACTIONS . TYPE . CREATED &&
298297 reportAction . pendingAction !== CONST . RED_BRICK_ROAD_PENDING_ACTION . DELETE ,
299298 ) ;
You can’t perform that action at this time.
0 commit comments