Kevin Powell - CommunityKP-C
Kevin Powell - Community4mo ago
35 replies
Nephos

Duplicate data from API

I’m fetching countries from the REST Countries API and displaying their regions in a dropdown.
Problem: every country comes with its region, so I keep getting repeated values like "Africa" 50+ times.
How do I display unique regions only?
Screenshot_20250913-215406.png
Screenshot_20250913-215342.png
Was this page helpful?