The console.log() is only displaying the returned values. You will need to determine what’s happening in the buildOptions() function to see why it’s returned a null value. You can add other console.log() statements in buildOptions() to see what’s happening. You should also check to see what the values are in uniqueTitles - perhaps one of those values is null and the problem is in the getUniqueTitles() function.
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Filter is not working on DB | 1 | 84 | September 6, 2018 | |
| Youtube tutorial issue "How to Create a Search for Your Database" | 9 | 188 | February 10, 2019 | |
| I cant seem to get rid of this message. I'm 17 and have no experience with coding at all. Options from data appear but doesn't change page | 2 | 119 | July 21, 2020 | |
| HELP: How to Properly filter duplicate items in a dropdown? | 5 | 134 | February 23, 2021 | |
| Conditional Dropdown options | 1 | 119 | August 31, 2020 |