aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichaelMorris <michael.morris@est.tech>2023-03-14 11:25:11 +0000
committerVasyl Razinkov <vasyl.razinkov@est.tech>2023-03-14 13:31:08 +0000
commitecdbb3d1c9a39fd41d496df2ead9dfb9706e38d5 (patch)
tree52d47b520b19f6fe4930ff98c1decdc3310b65e6
parent4d7475eece57dbef05e6db0d298a0da42164b004 (diff)
Fix error setting list default value
Signed-off-by: MichaelMorris <michael.morris@est.tech> Issue-ID: SDC-4434 Change-Id: Id43ee529b1eccfb1c878a7a13fc4e9a292e7ae4e
-rw-r--r--catalog-ui/src/app/view-models/forms/property-forms/component-property-form/property-form-view-model.ts1
1 files changed, 1 insertions, 0 deletions
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 61a58c54dd..dc9c82d8aa 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 @@ export class PropertyFormViewModel {
} 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;
}