Skip to content
This repository was archived by the owner on May 16, 2019. It is now read-only.

Commit 47c93a0

Browse files
committed
Fixed a pretty serious bug in the add/remove button.
1 parent a4fa148 commit 47c93a0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

js/views/userPageVw.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1474,7 +1474,7 @@ module.exports = baseVw.extend({
14741474

14751475
$targ.addClass('loading');
14761476

1477-
modList.moderators = this.model.get('user').moderators;
1477+
modList.moderators = this.model.get('user').moderator_guids;
14781478
modList.moderators.push(this.pageID);
14791479

14801480
saveToAPI('', this.model.get('user'), this.model.get('user').serverUrl + "settings",
@@ -1504,7 +1504,7 @@ module.exports = baseVw.extend({
15041504

15051505
modList.moderators = [];
15061506

1507-
__.each(this.model.get('user').moderators, function(mod) {
1507+
__.each(this.model.get('user').moderator_guids, function(mod) {
15081508
if(mod != self.pageID && (typeof(mod) !== 'object' || mod.guid != self.pageID)) {
15091509
modList.moderators.push(mod);
15101510
}

0 commit comments

Comments
 (0)