Skip to content

Commit

Permalink
feat: use keyword key in facade
Browse files Browse the repository at this point in the history
  • Loading branch information
cmoinier committed Jul 4, 2024
1 parent 4b23147 commit 4cc74cb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@
@for(category of displayCategories; track $index) {
<button
class="mel-badge-primary truncate"
(click)="onCategoryKeywordClick(category)"
(click)="onCategoryKeywordClick(category.key)"
>
{{ category }}
{{ category.label }}
</button>
}
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export class DatasetInformationComponent {
(keyword) => keyword.thesaurus?.name === 'Catégories'
)

return categoryKeywords?.map((keyword) => keyword.label)
return categoryKeywords
}

onCategoryKeywordClick(category: string) {
Expand Down

0 comments on commit 4cc74cb

Please sign in to comment.