Commit 1243e528 authored by Natalia Tepluhina's avatar Natalia Tepluhina

Merge branch 'ph/fixGradualDiffsAndHeadComparison' into 'master'

Fixes gradual diffs sending too many requests

See merge request gitlab-org/gitlab!49229
parents 5984177a 834ae8d8
...@@ -114,7 +114,8 @@ export const fetchDiffFilesBatch = ({ commit, state, dispatch }) => { ...@@ -114,7 +114,8 @@ export const fetchDiffFilesBatch = ({ commit, state, dispatch }) => {
} }
if ( if (
(diffsGradualLoad && totalLoaded === pagination.total_pages) || (diffsGradualLoad &&
(totalLoaded === pagination.total_pages || pagination.total_pages === null)) ||
(!diffsGradualLoad && !pagination.next_page) (!diffsGradualLoad && !pagination.next_page)
) { ) {
commit(types.SET_RETRIEVING_BATCHES, false); commit(types.SET_RETRIEVING_BATCHES, false);
......
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