diff options
author | Phil Hughes <me@iamphill.com> | 2018-09-14 10:17:31 +0100 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2018-09-17 09:50:38 +0100 |
commit | 5eef5f242ae160e7dfbfcadc507744343faad401 (patch) | |
tree | c448bec8497b445c5694a56727dc6b8f7db8bfbb /app/assets/javascripts/notes/stores | |
parent | ef4e3b6ed37e2e1b92c1ab39e5f94d908dddb279 (diff) | |
download | gitlab-ce-5eef5f242ae160e7dfbfcadc507744343faad401.tar.gz |
Updated LegacyDiffNote logic
Diffstat (limited to 'app/assets/javascripts/notes/stores')
-rw-r--r-- | app/assets/javascripts/notes/stores/utils.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/app/assets/javascripts/notes/stores/utils.js b/app/assets/javascripts/notes/stores/utils.js index eea6eb2b1af..0e41ff03d67 100644 --- a/app/assets/javascripts/notes/stores/utils.js +++ b/app/assets/javascripts/notes/stores/utils.js @@ -2,7 +2,6 @@ import AjaxCache from '~/lib/utils/ajax_cache'; const REGEX_QUICK_ACTIONS = /^\/\w+.*$/gm; -export const isLegacyDiffNote = note => !note.resolvable && !note.position; export const findNoteObjectById = (notes, id) => notes.filter(n => n.id === id)[0]; export const getQuickActionText = note => { @@ -28,7 +27,7 @@ export const getQuickActionText = note => { export const reduceDiscussionsToLineCodes = selectedDiscussions => selectedDiscussions.reduce((acc, note) => { - if (note.diff_discussion && note.line_code && (note.resolvable || isLegacyDiffNote(note))) { + if (note.diff_discussion && note.line_code) { // For context about line notes: there might be multiple notes with the same line code const items = acc[note.line_code] || []; items.push(note); |