Commit d2070e2e authored by Phil Hughes's avatar Phil Hughes

Fixed resolvable discussions bugs

parent 101a7f37
......@@ -32,11 +32,7 @@ export default {
}
}
if (
window.gon?.features?.paginatedNotes &&
note.base_discussion &&
type === constants.DIFF_NOTE
) {
if (window.gon?.features?.paginatedNotes && note.base_discussion) {
if (discussion.diff_file) {
discussion.file_hash = discussion.diff_file.file_hash;
......@@ -45,7 +41,8 @@ export default {
);
}
discussion.expanded = note.expanded;
discussion.resolvable = note.resolvable;
discussion.expanded = note.base_discussion.expanded;
discussion.resolved = note.resolved;
}
......
......@@ -291,6 +291,7 @@ describe('Actions Notes Store', () => {
[
{ type: 'updateOrCreateNotes', payload: discussionMock.notes },
{ type: 'startTaskList' },
{ type: 'updateResolvableDiscussionsCounts' },
],
));
});
......@@ -324,6 +325,7 @@ describe('Actions Notes Store', () => {
{ type: 'setLoadingState', payload: false },
{ type: 'updateOrCreateNotes', payload: discussionMock.notes },
{ type: 'startTaskList' },
{ type: 'updateResolvableDiscussionsCounts' },
],
);
});
......
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