commit | ecdbb3d1c9a39fd41d496df2ead9dfb9706e38d5 | [log] [tgz] |
---|---|---|
author | MichaelMorris <michael.morris@est.tech> | Tue Mar 14 11:25:11 2023 +0000 |
committer | Vasyl Razinkov <vasyl.razinkov@est.tech> | Tue Mar 14 13:31:08 2023 +0000 |
tree | 52d47b520b19f6fe4930ff98c1decdc3310b65e6 | |
parent | 4d7475eece57dbef05e6db0d298a0da42164b004 [diff] |
Fix error setting list default value Signed-off-by: MichaelMorris <michael.morris@est.tech> Issue-ID: SDC-4434 Change-Id: Id43ee529b1eccfb1c878a7a13fc4e9a292e7ae4e
diff --git a/catalog-ui/src/app/view-models/forms/property-forms/component-property-form/property-form-view-model.ts b/catalog-ui/src/app/view-models/forms/property-forms/component-property-form/property-form-view-model.ts index 61a58c5..dc9c82d 100644 --- a/catalog-ui/src/app/view-models/forms/property-forms/component-property-form/property-form-view-model.ts +++ b/catalog-ui/src/app/view-models/forms/property-forms/component-property-form/property-form-view-model.ts
@@ -396,6 +396,7 @@ } else { if (!this.$scope.editPropertyModel.property.simpleType && !this.$scope.isSimpleType(property.type)) { property.defaultValue = JSON.stringify(this.$scope.myValue); + property.value = JSON.stringify(this.$scope.myValue); } else { this.$scope.editPropertyModel.property.defaultValue = this.$scope.editPropertyModel.property.value; }