Skip to content

Commit

Permalink
Make sure to treat forage_type as a list (#540)
Browse files Browse the repository at this point in the history
  • Loading branch information
vontell authored Oct 15, 2024
1 parent 2116382 commit a62595c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/SelectedTapDetails/SelectedTapDetails.js
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ function getTagsFromResource(resource) {
tags.push(...(resource.food.organization_type || []));
}
if (resource.forage) {
tags.push(resource.forage.forage_type);
tags.push(...(resource.forage.forage_type || []));
}

return tags.filter(Boolean).sort(); // Tags are optional, so filter out missing tags too
Expand Down

0 comments on commit a62595c

Please sign in to comment.