Skip to content

Commit

Permalink
Merge pull request #51943 from truph01/fix/51789
Browse files Browse the repository at this point in the history
fix: cannot display description which contains only number
  • Loading branch information
Beamanator authored Nov 4, 2024
2 parents 0647baf + f87407a commit c9b62b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libs/ReportUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4273,7 +4273,7 @@ function getReportDescription(report: OnyxEntry<Report>): string {
try {
const reportDescription = report?.description;
const objectDescription = JSON.parse(reportDescription) as {html: string};
return objectDescription.html ?? '';
return objectDescription.html ?? reportDescription ?? '';
} catch (error) {
return report?.description ?? '';
}
Expand Down

0 comments on commit c9b62b7

Please sign in to comment.