Skip to content

Commit

Permalink
fix: data category not set properly (#547)
Browse files Browse the repository at this point in the history
  • Loading branch information
richardtreier authored Nov 17, 2023
1 parent 27aeaa9 commit a9efe59
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion src/app/core/services/asset-create-request-builder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit a9efe59

Please sign in to comment.