From a19b25a3b3c8d685eeb8bd2ef96ae2aed650e52a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Tue, 3 Mar 2015 12:40:20 -0500 Subject: [PATCH] closes #2816 --- src/posts/user.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/posts/user.js b/src/posts/user.js index c2094d5707..de563d86b5 100644 --- a/src/posts/user.js +++ b/src/posts/user.js @@ -34,9 +34,7 @@ module.exports = function(Posts) { var userData = results.userData; userData.forEach(function(userData, i) { userData.groups = results.groups[i]; - if (!results.userSettings[i].groupTitle) { - results.userSettings[i].groupTitle = results.groups[i][0] ? results.groups[i][0].name : ''; - } + results.groups[i].forEach(function(group, index) { group.selected = group.name === results.userSettings[i].groupTitle; });