Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Zallmann <tzallmann@gitlab.com>2018-09-07 18:13:11 +0300
committerTim Zallmann <tzallmann@gitlab.com>2018-09-07 18:13:11 +0300
commitd2cbe07398c3f824ffecbd78ff5749daca678d3e (patch)
tree80db47a1f53e1333b6252d14e314bb6a758f158e /app/assets/javascripts/notes/stores/utils.js
parentd4d5ed59f98eb3218418c385327224d2512e518e (diff)
Adapted so utils + actions don't include any mutations and mutations are always against state
Diffstat (limited to 'app/assets/javascripts/notes/stores/utils.js')
-rw-r--r--app/assets/javascripts/notes/stores/utils.js4
1 files changed, 0 insertions, 4 deletions
diff --git a/app/assets/javascripts/notes/stores/utils.js b/app/assets/javascripts/notes/stores/utils.js
index 7608790d042..8ccbdb4c130 100644
--- a/app/assets/javascripts/notes/stores/utils.js
+++ b/app/assets/javascripts/notes/stores/utils.js
@@ -30,10 +30,6 @@ export const reduceDiscussionsToLineCodes = selectedDiscussions =>
if (note.diff_discussion && note.line_code && note.resolvable) {
// For context about line notes: there might be multiple notes with the same line code
const items = acc[note.line_code] || [];
- if (note.diff_file) {
- // Object.assign(note, { fileHash: note.diff_file.file_hash });
- }
-
items.push(note);
Object.assign(acc, { [note.line_code]: items });