Gallery Code Help

Good day. I am trying to send information about an item selected from a gallery into a textbox, however I am getting a wix code sdk warning saying “The text parameter of “text1” that is passed to the text method cannot be set to null or undefined”, when I run the following code:

$w.onReady( function () {
$w(“#gallery1”).onItemClicked( (event) => {
let link = event.item.link;
$w(“#text1”).text = link;
} );
});

Hello

here’s how you can add links to your gallery images:


make sure of the links you have - defined ?

Best
Massa