diff --git a/src/attributes/components/AttributePage/AttributePage.tsx b/src/attributes/components/AttributePage/AttributePage.tsx index 2fda93f39..712c26f20 100644 --- a/src/attributes/components/AttributePage/AttributePage.tsx +++ b/src/attributes/components/AttributePage/AttributePage.tsx @@ -139,6 +139,7 @@ const AttributePage: React.FC = ({ const handleSubmit = (data: AttributePageFormData) => { const metadata = !attribute || isMetadataModified ? data.metadata : []; + const type = attribute === null ? data.type : undefined; const privateMetadata = !attribute || isPrivateMetadataModified ? data.privateMetadata : []; @@ -147,7 +148,7 @@ const AttributePage: React.FC = ({ metadata, privateMetadata, slug: data.slug || slugify(data.name).toLowerCase(), - type: data.type, + type, }); };