Limiting characters in a repeater PLEASE HELP

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 + " . . . " ;
});

} );

} );

I use this and worked fine

#dp - text in the repeater

$w('#repeater1').onItemReady(($item, itemData, index) => {
 if ($item('#dp').text.length > 25) {
 let theItem = itemData.description;
 var short = theItem.substr(0, 25);
                        $item('#dp').text = short + " " + "...";

                    }
                    });

it still doesnt work, doesnt even display any text other than the original template text. its like it isnt even recognising my “description” field

@thegadgetbadgerguru What is your code ??