Skip to content

Commit

Permalink
Merge pull request #48099 from nkdengineer/fix/48050
Browse files Browse the repository at this point in the history
fix empty description is displayed
  • Loading branch information
puneetlath authored Aug 27, 2024
2 parents 9c0c647 + 5842300 commit 30ef711
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/MenuItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -489,7 +489,8 @@ function MenuItem(
}

if (shouldTruncateTitle) {
titleToWrap = Parser.truncateHTML(titleToWrap, characterLimit, {ellipsis: '...'});
titleToWrap = Parser.truncateHTML(`<comment>${titleToWrap}</comment>`, characterLimit, {ellipsis: '...'});
return titleToWrap;
}

return titleToWrap ? `<comment>${titleToWrap}</comment>` : '';
Expand Down

0 comments on commit 30ef711

Please sign in to comment.