From ecdbb3d1c9a39fd41d496df2ead9dfb9706e38d5 Mon Sep 17 00:00:00 2001 From: MichaelMorris Date: Tue, 14 Mar 2023 11:25:11 +0000 Subject: Fix error setting list default value Signed-off-by: MichaelMorris Issue-ID: SDC-4434 Change-Id: Id43ee529b1eccfb1c878a7a13fc4e9a292e7ae4e --- .../property-forms/component-property-form/property-form-view-model.ts | 1 + 1 file changed, 1 insertion(+) 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; } -- cgit 1.2.3-korg