Commit 834ae8d8 authored by Phil Hughes's avatar Phil Hughes

Fixes gradual diffs sending too many requests

Fixes the diffs gradual loading sending too many requests
when comparing against HEAD
parent 17aa05f1
......@@ -114,7 +114,8 @@ export const fetchDiffFilesBatch = ({ commit, state, dispatch }) => {
}
if (
(diffsGradualLoad && totalLoaded === pagination.total_pages) ||
(diffsGradualLoad &&
(totalLoaded === pagination.total_pages || pagination.total_pages === null)) ||
(!diffsGradualLoad && !pagination.next_page)
) {
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