mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-09-05 20:54:27 +08:00
Fix error on activities page when user doesn't have any [SCI-2628]
This commit is contained in:
parent
422baaf64a
commit
3a5238f6f3
1 changed files with 1 additions and 1 deletions
|
@ -23,7 +23,7 @@ class ActivitiesController < ApplicationController
|
|||
activities = current_user.last_activities
|
||||
.page(page)
|
||||
.per(Constants::ACTIVITY_AND_NOTIF_SEARCH_LIMIT)
|
||||
unless activities.last_page?
|
||||
unless activities.blank? || activities.last_page?
|
||||
more_url = url_for(
|
||||
activities_url(
|
||||
format: :json,
|
||||
|
|
Loading…
Add table
Reference in a new issue