From 8f9cf4f2994f90fa69c2dd4f2b49a81ae98a6a25 Mon Sep 17 00:00:00 2001 From: Stas Vilchik Date: Thu, 28 Sep 2017 15:25:35 +0200 Subject: [PATCH] SONAR-9786 Closed issues retain their line --- server/sonar-web/src/main/js/helpers/issues.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/server/sonar-web/src/main/js/helpers/issues.ts b/server/sonar-web/src/main/js/helpers/issues.ts index 34cef95d7c6..cce6a2adc49 100644 --- a/server/sonar-web/src/main/js/helpers/issues.ts +++ b/server/sonar-web/src/main/js/helpers/issues.ts @@ -107,8 +107,10 @@ function injectCommentsRelational(issue: RawIssue, users?: User[]) { return { comments }; } -function prepareClosed(issue: RawIssue): { flows?: undefined } { - return issue.status === 'CLOSED' ? { flows: undefined } : {}; +function prepareClosed(issue: RawIssue) { + return issue.status === 'CLOSED' + ? { flows: undefined, line: undefined, textRange: undefined } + : {}; } function ensureTextRange(issue: RawIssue): { textRange?: TextRange } { -- 2.39.5