From a9efe59c075960d7d82a94637170232aa51f2e51 Mon Sep 17 00:00:00 2001 From: Richard Treier Date: Fri, 17 Nov 2023 17:18:52 +0100 Subject: [PATCH] fix: data category not set properly (#547) --- CHANGELOG.md | 1 + src/app/core/services/asset-create-request-builder.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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;