Skip to content

Commit

Permalink
Merge pull request #4131 from reportportal/master
Browse files Browse the repository at this point in the history
Sync develop with master
  • Loading branch information
AmsterGet authored Dec 13, 2024
2 parents 2ccee9b + 2f613ec commit 01dcfa8
Showing 1 changed file with 13 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ const messages = defineMessages({
},
});

const isResolved = (status) => status.toUpperCase() === STATUS_RESOLVED;
const isResolved = (status = '') => status.toUpperCase() === STATUS_RESOLVED;
const getStorageKey = (activeProject) => `${activeProject}_tickets`;

const FETCH_ISSUE_INTERVAL = 900000; // min request interval = 15 min
Expand Down Expand Up @@ -186,14 +186,18 @@ export class IssueInfoTooltip extends Component {
<Fragment>
<h4 className={cx('header')}>{formatMessage(messages.issueSummaryTitle)}</h4>
<p className={cx('content')}>{issue.summary}</p>
<h4 className={cx('header')}>{formatMessage(messages.issueStatusTitle)}</h4>
<p
className={cx('content', {
resolved: isResolved(issue.status),
})}
>
{issue.status}
</p>
{issue.status && (
<>
<h4 className={cx('header')}>{formatMessage(messages.issueStatusTitle)}</h4>
<p
className={cx('content', {
resolved: isResolved(issue.status),
})}
>
{issue.status}
</p>
</>
)}
</Fragment>
) : (
<Fragment>
Expand Down

0 comments on commit 01dcfa8

Please sign in to comment.