Commit c3016ebc authored by Kushal Pandya's avatar Kushal Pandya

Merge branch 'ph/227161/fixDiscussonsOnCommits' into 'master'

Fixed diff commit comments not appearing

See merge request gitlab-org/gitlab!53143
parents 3b692a28 0b3df0df
......@@ -159,7 +159,12 @@ export default {
[types.SET_LINE_DISCUSSIONS_FOR_FILE](state, { discussion, diffPositionByLineCode, hash }) {
const { latestDiff } = state;
const discussionLineCodes = [discussion.line_code, ...(discussion.line_codes || [])];
const originalStartLineCode = discussion.original_position?.line_range?.start?.line_code;
const discussionLineCodes = [
discussion.line_code,
originalStartLineCode,
...(discussion.line_codes || []),
];
const fileHash = discussion.diff_file.file_hash;
const lineCheck = (line) =>
discussionLineCodes.some(
......
---
title: Fixed discussions on merge request commits not showing
merge_request: 53143
author:
type: fixed
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment