Skip to content

Commit

Permalink
fix custom report name
Browse files Browse the repository at this point in the history
  • Loading branch information
matt-fidd committed Jan 21, 2025
1 parent 908f087 commit 493f888
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -711,7 +711,10 @@ function CustomReportInner({ report: initialReport }: CustomReportInnerProps) {
<Text style={{ marginLeft: 5, color: theme.pageTextPositive }}>
{
{
name: report.name ?? t('Unsaved report'),
name:
report.name?.length > 0
? report.name
: t('Unsaved report'),
} as TransObjectLiteral
}
</Text>
Expand Down

0 comments on commit 493f888

Please sign in to comment.