fix: 🐛 include nulls

This commit is contained in:
Randall Morey committed 2022-01-19 12:16:57 -05:00
1 parent 1fd6c8a27e
commit 121129ffd2
1 file changed
+1 -1
+1 -1
View File
@@ -51,7 +51,7 @@ export default class ApplicationSerializer extends RESTSerializer {
// TODO: disabled is temporarily disabled
if (key === 'disabled') delete json[key];
// Push nested attributes down into the attributes key
if (options.isNestedAttribute && json[key]) {
if (options.isNestedAttribute && json[key] !== undefined) {
if (!json.attributes) json.attributes = {};
json.attributes[key] = json[key];
delete json[key];