Skip to content

Commit

Permalink
Merge pull request #45678 from software-mansion-labs/@kosmydel/fix-ex…
Browse files Browse the repository at this point in the history
…port-button

fix: displaying export button
  • Loading branch information
arosiclair authored Jul 22, 2024
2 parents 5b2d902 + 9b26460 commit 6b13984
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/pages/ReportDetailsPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ function ReportDetailsPage({policies, report, session, personalDetails}: ReportD
});
}

if (policy && connectedIntegration && isPolicyAdmin) {
if (policy && connectedIntegration && isPolicyAdmin && !isSingleTransactionView) {
items.push({
key: CONST.REPORT_DETAILS_MENU_ITEM.EXPORT,
translationKey: 'common.export',
Expand Down Expand Up @@ -432,6 +432,7 @@ function ReportDetailsPage({policies, report, session, personalDetails}: ReportD
policy,
connectedIntegration,
isPolicyAdmin,
isSingleTransactionView,
canModifyTask,
shouldShowMenuItem,
isTaskReport,
Expand Down

0 comments on commit 6b13984

Please sign in to comment.