24-25' Unit 7 Lesson 7 Level 2

The working code provided as the exemplar for teachers in Unit 7 Lesson 7 Level 2 Cat Rendomizer app throws an error after clicking on the “Show me Another!” button numerous times - some times 11, 46, or different number of times. The error message is: TypeError: e.replace is not a function

I don’t understand what was wrong? Can somebody help to figure it out? I have attached the code and the error message.


Hello,

I can recreate this issue as well. I’ve tracked down the bug to the getColumn call in the library function randomBreed(). For some reason, it is intermittently failing to retrieve the list of names and returning a list of length 0. I don’t have any access to the getColumn() function though, so I’ll pass this one on to the code.org team to take a look at.

Thanks for pointing it out!