You might want to consider using a .distinct() query. See the Example: Remove duplicates from connected dropdown options using distinct() query . By using distinct(), you eliminate the need to filter the results in code.
You might want to consider using a .distinct() query. See the Example: Remove duplicates from connected dropdown options using distinct() query . By using distinct(), you eliminate the need to filter the results in code.