I have a collection stored in Firebase. Each document in the collection has a field called "Category", "Subcategory" and "Item"
I want users to select a "Category" using DropDown1, then "Subcategory" using DropDown2, then "Item" using DropDown3.
The problem I am having is filtering out the duplicates in DropDown1, and in DropDown2.
I can successfully populate the dropdown options with a backend query, but I cannot figure out how to filter out the duplicate options.