From 59e446fb77ccf05aeae9b7046bd80e10124707c0 Mon Sep 17 00:00:00 2001 From: eschcam Date: Wed, 1 Feb 2023 12:17:18 +0000 Subject: Disable editing the name of existing attributes Also added a patch to fix an exception been thrown when editing existing attributes Issue-ID: SDC-3384 Signed-off-by: eschcam Change-Id: I524bad3046699baf66f407d1cf0c36394a66b623 --- catalog-ui/src/app/models/attributes-outputs/attribute-be-model.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'catalog-ui/src/app/models/attributes-outputs') diff --git a/catalog-ui/src/app/models/attributes-outputs/attribute-be-model.ts b/catalog-ui/src/app/models/attributes-outputs/attribute-be-model.ts index 6af23a55ae..a6966cd799 100644 --- a/catalog-ui/src/app/models/attributes-outputs/attribute-be-model.ts +++ b/catalog-ui/src/app/models/attributes-outputs/attribute-be-model.ts @@ -64,7 +64,11 @@ export class AttributeBEModel { this.password = attribute.password; this.required = attribute.required; this.schema = attribute.schema; - this.schemaType = attribute.schemaType; + + if (attribute.schemaType) { + this.schemaType = attribute.schemaType; + } + this.type = attribute.type; this.uniqueId = attribute.uniqueId; this.value = attribute.value; -- cgit 1.2.3-korg