Skip to content

Commit

Permalink
Fixes taxonomy_group
Browse files Browse the repository at this point in the history
  • Loading branch information
Enngage committed Sep 10, 2024
1 parent b9650a0 commit a3bb05a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/contracts/contracts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export namespace Contracts {
name: string;
type: string;
value: any;
taxonomy_group: string;
taxonomy_group?: string;
}

export interface IDateTimeElementContract extends IElementContract {
Expand Down
2 changes: 1 addition & 1 deletion lib/mappers/element.mapper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ export class ElementMapper {
private mapTaxonomyElement(elementWrapper: ElementModels.IElementWrapper): Elements.TaxonomyElement {
return {
...this.buildElement(elementWrapper, ElementType.Taxonomy, () => elementWrapper.rawElement.value),
taxonomyGroup: elementWrapper.rawElement.taxonomy_group
taxonomyGroup: elementWrapper.rawElement.taxonomy_group ?? ''
};
}

Expand Down

0 comments on commit a3bb05a

Please sign in to comment.