Ah I think it’s because we made some changes to our themes, outlined here: Upcoming core changes that may break some themes/components (April 12)
In the code above I wasn’t declaring the featuredTopics
variable, adding let
should do the trick… so you’ll just need to update:
featuredTopics = [];
to
let featuredTopics = [];