diff options
author | eschcam <cameron.scholes@est.tech> | 2023-02-01 12:17:18 +0000 |
---|---|---|
committer | Michael Morris <michael.morris@est.tech> | 2023-02-22 12:25:11 +0000 |
commit | 59e446fb77ccf05aeae9b7046bd80e10124707c0 (patch) | |
tree | 26c21256e5734685646c7c0ce93112cd099429ea /catalog-ui/src/app/models/attributes-outputs/attribute-be-model.ts | |
parent | 3eb6f41297cedc038d18582d31d65dab05b351b8 (diff) |
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 <cameron.scholes@est.tech>
Change-Id: I524bad3046699baf66f407d1cf0c36394a66b623
Diffstat (limited to 'catalog-ui/src/app/models/attributes-outputs/attribute-be-model.ts')
-rw-r--r-- | catalog-ui/src/app/models/attributes-outputs/attribute-be-model.ts | 6 |
1 files changed, 5 insertions, 1 deletions
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; |