diff --git a/CHANGELOG.md b/CHANGELOG.md index 5bb0f9cd4..661a0da32 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -26,6 +26,7 @@ the detailed section referring to by linking pull requests or issues. - Improved visibility of buttons in "Create New Asset" and "Initiate Transfer" Dialogs - Broker Server API now also has a type-safe fake backend. +- Fix Data Category not being set correctly when creating assets. #### Deployment Migration Notes diff --git a/src/app/core/services/asset-create-request-builder.ts b/src/app/core/services/asset-create-request-builder.ts index b20507ac3..1a9b6a7c2 100644 --- a/src/app/core/services/asset-create-request-builder.ts +++ b/src/app/core/services/asset-create-request-builder.ts @@ -27,7 +27,7 @@ export class AssetCreateRequestBuilder { const mediaType = formValue.metadata?.contentType; const landingPageUrl = formValue.metadata?.endpointDocumentation; - const dataCategory = formValue.advanced?.dataModel; + const dataCategory = formValue.advanced?.dataCategory?.id; const dataSubcategory = formValue.advanced?.dataSubcategory?.id; const transportMode = formValue.advanced?.transportMode?.id; const geoReferenceMethod = formValue.advanced?.geoReferenceMethod;