Empty array instead of undefined

This commit is contained in:
abalabahaha
2016-02-20 19:30:50 -08:00
parent 7b24127de5
commit 0ec5d3e8d7
2 changed files with 2 additions and 2 deletions

View File

@@ -193,7 +193,7 @@ var Server = (function (_Equality) {
if (user) {
return this.memberMap[user.id] ? this.memberMap[user.id].roles : [];
} else {
return null;
return [];
}
};