Fix error setting list default value 45/133645/2
authorMichaelMorris <michael.morris@est.tech>
Tue, 14 Mar 2023 11:25:11 +0000 (11:25 +0000)
committerVasyl Razinkov <vasyl.razinkov@est.tech>
Tue, 14 Mar 2023 13:31:08 +0000 (13:31 +0000)
Signed-off-by: MichaelMorris <michael.morris@est.tech>
Issue-ID: SDC-4434
Change-Id: Id43ee529b1eccfb1c878a7a13fc4e9a292e7ae4e

catalog-ui/src/app/view-models/forms/property-forms/component-property-form/property-form-view-model.ts

index 61a58c5..dc9c82d 100644 (file)
@@ -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;
                     }