From 9090c7b05b2ce52236e831607dae923f7a371d62 Mon Sep 17 00:00:00 2001 From: Robin Ward Date: Wed, 17 May 2017 11:49:59 -0400 Subject: [PATCH] FIX: Admin groups editor was showing extra page when exactly 50 records --- .../javascripts/discourse/components/group-members-input.js.es6 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/discourse/components/group-members-input.js.es6 b/app/assets/javascripts/discourse/components/group-members-input.js.es6 index 1fb45f27bf6..b2d892095b9 100644 --- a/app/assets/javascripts/discourse/components/group-members-input.js.es6 +++ b/app/assets/javascripts/discourse/components/group-members-input.js.es6 @@ -15,7 +15,7 @@ export default Ember.Component.extend({ @computed('model.limit', 'model.user_count') totalPages(limit, userCount) { if (userCount === 0) { return 0; } - return Math.floor(userCount / limit) + 1; + return Math.ceil(userCount / limit); }, @computed('model.usernames')