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:
parent
1a089ad23c
commit
a6ac97e69f
|
@ -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]
|
||||
|
|
Loading…
Reference in New Issue