diff --git a/packages/desktop-client/src/components/reports/SaveReport.tsx b/packages/desktop-client/src/components/reports/SaveReport.tsx index b748e446c8d..14b5009df9c 100644 --- a/packages/desktop-client/src/components/reports/SaveReport.tsx +++ b/packages/desktop-client/src/components/reports/SaveReport.tsx @@ -47,7 +47,7 @@ export function SaveReport({ const chooseSavedReport = listReports.find(r => cond === r.id); onReportChange({ savedReport: chooseSavedReport, type: 'choose' }); setChooseMenuOpen(false); - setName(chooseSavedReport.name); + setName(chooseSavedReport === undefined ? '' : chooseSavedReport.name); } const onAddUpdate = async (menuChoice: string) => {