mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-29 11:45:18 +08:00
Merge pull request #1271 from okriuchykhin/ok_SCI_2628
Fix error on activities page when user doesn't have any [SCI-2628]
This commit is contained in:
commit
0ca9972905
1 changed files with 1 additions and 1 deletions
|
@ -23,7 +23,7 @@ class ActivitiesController < ApplicationController
|
||||||
activities = current_user.last_activities
|
activities = current_user.last_activities
|
||||||
.page(page)
|
.page(page)
|
||||||
.per(Constants::ACTIVITY_AND_NOTIF_SEARCH_LIMIT)
|
.per(Constants::ACTIVITY_AND_NOTIF_SEARCH_LIMIT)
|
||||||
unless activities.last_page?
|
unless activities.blank? || activities.last_page?
|
||||||
more_url = url_for(
|
more_url = url_for(
|
||||||
activities_url(
|
activities_url(
|
||||||
format: :json,
|
format: :json,
|
||||||
|
|
Loading…
Reference in a new issue