From 121129ffd2594ee4fb91308a03a607bd96fcc404 Mon Sep 17 00:00:00 2001 From: Randall Morey Date: Wed, 19 Jan 2022 12:16:57 -0500 Subject: [PATCH] =?UTF-8?q?fix:=20=F0=9F=90=9B=20include=20nulls?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- addons/api/addon/serializers/application.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/api/addon/serializers/application.js b/addons/api/addon/serializers/application.js index 6223f5df8..cb61f1a34 100644 --- a/addons/api/addon/serializers/application.js +++ b/addons/api/addon/serializers/application.js @@ -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];