Landing page with Rich Media Recommendation code not loading Predictive Content

Issue

No predictive content loads after embedding the JavaScript code for Rich Media Recommendation:

The error: "Cannot read property 'assets' of undefined ", is visible when you inspect the website and check for the errors under the Console tab.


Solution

If there is only one piece of predictive content approved then not content would display. The error "cannot read property 'assets' of undefined" means that there is no more content available to display. In order to fix this you need to have THREE OR MORE predictive content assets approved.