I'm trying to highlight the color of the select component values. Please take a look below to see the issue I'm facing.
You'll see a Date Range component and a "Select Task Type" component. The "Select Task Type" dropdown contains all task IDs, and when I select a task ID, the table filters based on that selection. The "task_id" column is present in my table, so selecting any task ID filters the table accordingly. However, not all task IDs in the dropdown are present in the data because I've also applied a Date Range filter on the table (from August 27, 2024, to September 26, 2024).
The issue arises because the Date Range filter limits the data, and some task IDs in the dropdown don't exist for that date range. I want to highlight the task ID values in the "Select Task Type" component—green for task IDs that are present in the filtered data and red for those that are not.