Skip to content

Commit

Permalink
Makes taxonomy_group contract prop required
Browse files Browse the repository at this point in the history
  • Loading branch information
Enngage committed Sep 10, 2024
1 parent 3118752 commit b9650a0
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 ?? null
taxonomyGroup: elementWrapper.rawElement.taxonomy_group
};
}

Expand Down

0 comments on commit b9650a0

Please sign in to comment.