From 712607cb0cf8c026d8e5595a78d631e928d8a8be Mon Sep 17 00:00:00 2001 From: Randall Morey Date: Fri, 21 Jan 2022 15:26:27 -0500 Subject: [PATCH] fix: variable name --- addons/api/addon/serializers/application.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/addons/api/addon/serializers/application.js b/addons/api/addon/serializers/application.js index 6ad34b4d9..29f3fa1b4 100644 --- a/addons/api/addon/serializers/application.js +++ b/addons/api/addon/serializers/application.js @@ -235,12 +235,12 @@ export default class ApplicationSerializer extends RESTSerializer { normalizeNestedAttributes(typeClass, hash) { typeClass.attributes.forEach((attribute) => { const { isNestedAttribute } = attribute.options; - const attributeValue = normalizedHash.attributes?.[attribute.name]; + const attributeValue = hash.attributes?.[attribute.name]; if (isNestedAttribute && attributeValue) { - normalizedHash[attribute.name] = attributeValue; + hash[attribute.name] = attributeValue; } }); - return normalizedHash; + return hash; } /** @@ -261,8 +261,8 @@ export default class ApplicationSerializer extends RESTSerializer { name, options: { isNestedSecret }, } = attribute; - if (isNestedSecret) normalizedHash[name] = null; + if (isNestedSecret) hash[name] = null; }); - return normalizedHash; + return hash; } }