File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -554,7 +554,7 @@ function MoneyReportHeader({
554554 const [ offlineModalVisible , setOfflineModalVisible ] = useState ( false ) ;
555555
556556 const [ integrationsExportTemplates ] = useOnyx ( ONYXKEYS . NVP_INTEGRATION_SERVER_EXPORT_TEMPLATES , { initialValue : [ ] , canBeMissing : false } ) ;
557- const exportSubmenuOptions = useMemo ( ( ) => {
557+ const exportSubmenuOptions : Record < string , DropdownOption < string > > = useMemo ( ( ) => {
558558 const options : Record < string , DropdownOption < string > > = {
559559 [ CONST . REPORT . EXPORT_OPTIONS . DOWNLOAD_CSV ] : {
560560 text : translate ( 'export.basicExport' ) ,
@@ -791,7 +791,7 @@ function MoneyReportHeader({
791791 text : translate ( 'common.export' ) ,
792792 backButtonText : translate ( 'common.export' ) ,
793793 icon : Expensicons . Export ,
794- subMenuItems : secondaryExportActions . map ( ( action ) => exportSubMenuOptions [ action ] ) ,
794+ subMenuItems : secondaryExportActions . map ( ( action ) => exportSubmenuOptions [ action as string ] ) ,
795795 } ,
796796 [ CONST . REPORT . SECONDARY_ACTIONS . DOWNLOAD_PDF ] : {
797797 value : CONST . REPORT . SECONDARY_ACTIONS . DOWNLOAD_PDF ,
You can’t perform that action at this time.
0 commit comments