Hi i have read the tutorial for limiting characters in a repeater . This is my code, i have done everything that was mentioned and nothing happens, it just spita out the error message
Wix code SDK error: The “onItemReady” function of “repeater1” threw the following error: Cannot read property ‘substr’ of undefined
$w.onReady( () => {
$w( “#dataset1” ).onReady( () => {
$w( "#repeater1" ).onItemReady( ($item, itemData, index) => {
let theItem = itemData.description;
var shortDescription = theItem.substr( 0 , 25 );
$item( “#description” ).text = shortDescription + " . . . " ;
});
} );
} );