Простановка публичных url в задачах при загрузке данных для виджетов
This commit is contained in:
parent
a6241ce786
commit
81966907ac
1 changed files with 1 additions and 0 deletions
|
|
@ -13,6 +13,7 @@ export class IssueUrlEnhancer implements IssueEnhancerInterface {
|
|||
issue: RedmineTypes.Issue,
|
||||
): Promise<RedmineTypes.Issue & Record<string, any>> {
|
||||
const res: RedmineTypes.Issue & Record<string, any> = issue;
|
||||
if (!issue || !issue.id) return issue;
|
||||
res['url'] = {
|
||||
url: this.redminePublicUrlConverter.getUrl(issue.id),
|
||||
fullHref: this.redminePublicUrlConverter.getHtmlHref(issue),
|
||||
|
|
|
|||
Loading…
Reference in a new issue