Skip to content

Commit

Permalink
[MM-1028]: Updated the handling of jira summary in tooltip
Browse files Browse the repository at this point in the history
  • Loading branch information
Kshitij-Katiyar committed Oct 24, 2024
1 parent df1df69 commit 61e6ff9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ export default class TicketPopover extends React.PureComponent<Props, State> {
target='_blank'
rel='noopener noreferrer'
>
<h5>{ticketDetails.summary && `${ticketDetails.summary.substring(0, jiraTicketSummaryMaxLength).trim()}${ticketDetails.summary.length > jiraTicketSummaryMaxLength ? '...' : ''}`}</h5>
<h5>{ticketDetails.summary && `${ticketDetails.summary.trim().split(/\s+/).join(' ').substring(0, jiraTicketSummaryMaxLength)}${ticketDetails.summary.trim().split(/\s+/).join(' ').length > jiraTicketSummaryMaxLength ? '...' : ''}`}</h5>
</a>
{this.tagTicketStatus(ticketDetails.statusKey)}
</div>
Expand Down

0 comments on commit 61e6ff9

Please sign in to comment.