Skip to content
代码片段 群组 项目
提交 a9b42a7e 编辑于 作者: Stanislav Lashmanov's avatar Stanislav Lashmanov
浏览文件

Add a safeguard against non-matching diff discussion positions

Changelog: fixed
上级 45980a79
No related branches found
No related tags found
无相关合并请求
......@@ -210,6 +210,8 @@ export default {
if (diffLines.length && positionType !== FILE_DIFF_POSITION_TYPE) {
const line = diffLines.find(isTargetLine);
// skip if none of the discussion positions matched a diff position
if (!line) return;
const discussions = addDiscussion(line.discussions || []);
Object.assign(line, {
discussions,
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册