diff options
Diffstat (limited to 'server/sonar-web/src/main/js/api/security-hotspots.ts')
-rw-r--r-- | server/sonar-web/src/main/js/api/security-hotspots.ts | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/server/sonar-web/src/main/js/api/security-hotspots.ts b/server/sonar-web/src/main/js/api/security-hotspots.ts index 7ad46bda59a..7c44c93edbd 100644 --- a/server/sonar-web/src/main/js/api/security-hotspots.ts +++ b/server/sonar-web/src/main/js/api/security-hotspots.ts @@ -27,7 +27,7 @@ import { HotspotResolution, HotspotSearchResponse, HotspotSetStatusRequest, - HotspotStatus + HotspotStatus, } from '../types/security-hotspots'; import { UserBase } from '../types/users'; @@ -100,17 +100,17 @@ export function getSecurityHotspotDetails(securityHotspotKey: string): Promise<H if (users) { if (hotspot.assignee) { - hotspot.assigneeUser = users.find(u => u.login === hotspot.assignee) || { + hotspot.assigneeUser = users.find((u) => u.login === hotspot.assignee) || { active: true, - login: hotspot.assignee + login: hotspot.assignee, }; } - hotspot.authorUser = users.find(u => u.login === hotspot.author) || { + hotspot.authorUser = users.find((u) => u.login === hotspot.author) || { active: true, - login: hotspot.author + login: hotspot.author, }; - hotspot.comment.forEach(c => { - c.user = users.find(u => u.login === c.login) || { active: true, login: c.login }; + hotspot.comment.forEach((c) => { + c.user = users.find((u) => u.login === c.login) || { active: true, login: c.login }; }); } |