From b202ab9098901d37a58f8721cac3f438ee490f02 Mon Sep 17 00:00:00 2001 From: carkom Date: Wed, 21 Feb 2024 19:57:30 +0000 Subject: [PATCH] fix --- packages/desktop-client/src/components/reports/SaveReport.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) => {