Commit eb2b933c authored by Phil Hughes's avatar Phil Hughes

Fixed hidden truncated diff lines not showing when expanded

`truncated_diff_lines` gets added to collapsed discussions when expanded
at this point `truncated_diff_lines` doesn't exist and is therefore not
reactive. This property gets added when creating discussions in order
for it to start as a reactive property
parent 8d2dfbed
...@@ -100,7 +100,10 @@ export default { ...@@ -100,7 +100,10 @@ export default {
discussionsData.forEach(discussion => { discussionsData.forEach(discussion => {
if (discussion.diff_file) { if (discussion.diff_file) {
Object.assign(discussion, { fileHash: discussion.diff_file.file_hash }); Object.assign(discussion, {
fileHash: discussion.diff_file.file_hash,
truncated_diff_lines: discussion.truncated_diff_lines || [],
});
} }
// To support legacy notes, should be very rare case. // To support legacy notes, should be very rare case.
......
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