diff options
author | Tim Zallmann <tzallmann@gitlab.com> | 2018-09-10 08:50:41 +0000 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2018-09-10 08:50:41 +0000 |
commit | 12b48e61af4cdcf1caf0355ccc9c7a4b98175d6a (patch) | |
tree | e8aab445af9429fc7b17df5a3658fd6e2ae21d69 /app/assets | |
parent | 3d1fa7902afa67ea7cffd4b507d7b66be336978a (diff) | |
download | gitlab-ce-12b48e61af4cdcf1caf0355ccc9c7a4b98175d6a.tar.gz |
Resolve "On master, inline diff view contains extra `+` and `-` signs"
Diffstat (limited to 'app/assets')
-rw-r--r-- | app/assets/javascripts/diffs/store/utils.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/assets/javascripts/diffs/store/utils.js b/app/assets/javascripts/diffs/store/utils.js index 4139a999574..b7e52a8f37f 100644 --- a/app/assets/javascripts/diffs/store/utils.js +++ b/app/assets/javascripts/diffs/store/utils.js @@ -205,7 +205,8 @@ export function prepareDiffData(diffData) { if (file.highlightedDiffLines) { const linesLength = file.highlightedDiffLines.length; for (let u = 0; u < linesLength; u += 1) { - trimFirstCharOfLineContent(file.highlightedDiffLines[u]); + const line = file.highlightedDiffLines[u]; + Object.assign(line, { ...trimFirstCharOfLineContent(line) }); } showingLines += file.parallelDiffLines.length; } |