Fix conditional to check for undefined

This commit is contained in:
Carlos Alcaide Corvo committed 2022-02-10 11:47:30 -08:00
1 parent b33a4d0b1d
commit e1282bb870
1 file changed
+1 -1
+1 -1
View File
@@ -266,7 +266,7 @@ export default class ApplicationSerializer extends RESTSerializer {
// FIXME: This could be improved
if (isNestedSecret) {
hash[name] = null;
if (attributeValue) {
if (typeof attributeValue != 'undefined') {
hash[name] = attributeValue;
}
}