(Solved) Getting image src and setting it to another image element

My image is in a repeater and I would like to set it to another image outside the repeater on mousein.


    let $item = $w.at(event.context)
let imagesrc=$item("#dataset1").getCurrentItem().image.src
 $item('#image8').src=imagesrc
  console.log(imagesrc)
}

The error at the console is “undefined” What could be the mistake in code be?

line 2:

let imagesrc = $w('#repeater1').data.find(e => e._id === event.context.itemId).image;

Thank you J.D