Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
carkom committed Feb 21, 2024
1 parent 903bb24 commit b202ab9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down

0 comments on commit b202ab9

Please sign in to comment.