Index 1 error

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.