summaryrefslogtreecommitdiff
path: root/horizon/static/framework/widgets/metadata/tree/tree.service.js
diff options
context:
space:
mode:
Diffstat (limited to 'horizon/static/framework/widgets/metadata/tree/tree.service.js')
-rw-r--r--horizon/static/framework/widgets/metadata/tree/tree.service.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/horizon/static/framework/widgets/metadata/tree/tree.service.js b/horizon/static/framework/widgets/metadata/tree/tree.service.js
index 1256985f5..47ba1a844 100644
--- a/horizon/static/framework/widgets/metadata/tree/tree.service.js
+++ b/horizon/static/framework/widgets/metadata/tree/tree.service.js
@@ -71,6 +71,8 @@
Property.prototype.setValue = function (value) {
if (value === null) {
this.value = this.type !== 'array' ? null : [];
+ // if the existing property is null, make the field not required
+ this.required = false;
return;
}