FIX: Stop loading more if initial topic list less than limit

In cases where the initial topic list is less than 30 and the viewport
is short enough to scroll, an additional set of topics would load. This
commit prevents a load more link from being generated in those
instances.
This commit is contained in:
Justin DiRose 2019-11-08 10:41:56 -06:00
parent 1a089ad23c
commit a6ac97e69f
1 changed files with 1 additions and 0 deletions

View File

@ -61,6 +61,7 @@ module KnowledgeExplorer
else
offset = 0
page_range = @limit
end_of_list = true if results_length < @limit
end
results = results[offset...page_range]