Skip to content

Commit 545fb78

Browse files
committed
fix typescript error
1 parent 56611ce commit 545fb78

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/components/MoneyReportHeader.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -549,7 +549,7 @@ function MoneyReportHeader({
549549

550550
const [offlineModalVisible, setOfflineModalVisible] = useState(false);
551551

552-
const [integrationsExportTemplates] = useOnyx(ONYXKEYS.NVP_INTEGRATION_SERVER_EXPORT_TEMPLATES, {initialValue: [], canBeMissing: false});
552+
const [integrationsExportTemplates] = useOnyx(ONYXKEYS.NVP_INTEGRATION_SERVER_EXPORT_TEMPLATES, {canBeMissing: false});
553553
const exportSubmenuOptions: Record<string, DropdownOption<string>> = useMemo(() => {
554554
const options: Record<string, DropdownOption<string>> = {
555555
[CONST.REPORT.EXPORT_OPTIONS.DOWNLOAD_CSV]: {
@@ -773,7 +773,7 @@ function MoneyReportHeader({
773773
if (!moneyRequestReport) {
774774
return [];
775775
}
776-
return getSecondaryExportReportActions(moneyRequestReport, policy, reportActions, integrationsExportTemplates);
776+
return getSecondaryExportReportActions(moneyRequestReport, policy, reportActions, integrationsExportTemplates ?? []);
777777
}, [moneyRequestReport, policy, reportActions, integrationsExportTemplates]);
778778

779779
const secondaryActionsImplementation: Record<

0 commit comments

Comments
 (0)