fix: 🐛 handle empty member_ids in group responses
This commit is contained in:
3 files changed
+36
-2
No files matched your search
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user