diff options
Diffstat (limited to 'app/assets/javascripts/diffs/store/getters.js')
-rw-r--r-- | app/assets/javascripts/diffs/store/getters.js | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/app/assets/javascripts/diffs/store/getters.js b/app/assets/javascripts/diffs/store/getters.js index 4a47646d7fa..8dfa7c5d9da 100644 --- a/app/assets/javascripts/diffs/store/getters.js +++ b/app/assets/javascripts/diffs/store/getters.js @@ -64,13 +64,18 @@ export const getDiffFileDiscussions = (state, getters, rootState, rootGetters) = discussion.diff_discussion && _.isEqual(discussion.diff_file.file_hash, diff.fileHash), ) || []; -export const singleDiscussionByLineCode = (state, getters, rootState, rootGetters) => lineCode => { +export const singleDiscussionByLineCodeOld = ( + state, + getters, + rootState, + rootGetters, +) => lineCode => { if (!lineCode || lineCode === undefined) return []; const discussions = rootGetters.discussionsByLineCode; return discussions[lineCode] || []; }; -export const shouldRenderParallelCommentRow = (state, getters) => line => { +export const shouldRenderParallelCommentRowOld = (state, getters) => line => { const leftLineCode = line.left.lineCode; const rightLineCode = line.right.lineCode; const leftDiscussions = getters.singleDiscussionByLineCode(leftLineCode); |