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
(cherry picked from commit c9b62b7)

(CP triggered by Beamanator)
  • Loading branch information
Beamanator authored and OSBotify committed Nov 4, 2024
1 parent 8161306 commit 3713be0
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 3713be0

Please sign in to comment.