fix: Fixes wrong page size in category filter in articles page (#8270)
This commit is contained in:
committed by
GitHub
parent
e8f4ac632f
commit
4999f7ed23
@@ -10,7 +10,7 @@ class Api::V1::Accounts::ArticlesController < Api::V1::Accounts::BaseController
|
|||||||
@articles_count = @all_articles.count
|
@articles_count = @all_articles.count
|
||||||
|
|
||||||
@articles = if list_params[:category_slug].present?
|
@articles = if list_params[:category_slug].present?
|
||||||
@all_articles.order_by_position.page(@current_page).per(50)
|
@all_articles.order_by_position.page(@current_page)
|
||||||
else
|
else
|
||||||
@all_articles.order_by_updated_at.page(@current_page)
|
@all_articles.order_by_updated_at.page(@current_page)
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user