Исправлена ошибка со стилями приоритетов
This commit is contained in:
parent
54a7e19b4f
commit
e0d154f2cc
1 changed files with 2 additions and 1 deletions
|
|
@ -64,7 +64,8 @@ export class PriorityStylesEnhancer implements IssueEnhancerInterface {
|
||||||
async enhance(
|
async enhance(
|
||||||
issue: RedmineTypes.ExtendedIssue,
|
issue: RedmineTypes.ExtendedIssue,
|
||||||
): Promise<RedmineTypes.ExtendedIssue> {
|
): Promise<RedmineTypes.ExtendedIssue> {
|
||||||
const priorityName = issue.priority.name;
|
const priorityName = issue?.priority?.name;
|
||||||
|
if (!priorityName) return issue;
|
||||||
const priorityRule = this.findPriorityRule(priorityName);
|
const priorityRule = this.findPriorityRule(priorityName);
|
||||||
issue[this.targetKey] = priorityRule.style || priorityRule.className;
|
issue[this.targetKey] = priorityRule.style || priorityRule.className;
|
||||||
return issue;
|
return issue;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue