fix: 🐛 handle empty member_ids in group responses

This commit is contained in:
Randall Morey committed 2020-09-12 11:47:27 -04:00
1 parent bcd46cec1f
commit 156dc08ff5
3 files changed
+36 -2

No files matched your search

+1 -1
View File
@@ -12,7 +12,7 @@ export default ApplicationSerializer.extend({
_hashForModel(model) {
const json = ApplicationSerializer.prototype._hashForModel.apply(this, arguments);
json.member_ids = model.memberIds;
if (model.memberIds.length) json.member_ids = model.memberIds;
return json;
}