Hide Button If No Content In Database (Repeater)

@thequeensmarketshop
Everything works like described in my post (tested here on this site…)
https://www.media-junkie.com/repeater-queensmarket

var datafield = "title"

$w.onReady(function () {
    $w("#repeater1").onItemReady(($item, itemData, index) => {
        console.log($w)
        console.log(itemData)
        console.log(index)
 //----------------------------------------
 const repeatedData = itemData[datafield]

 if(repeatedData) {$item("#image1").show()}
 else {$item("#image1").hide()}
 });
});

Title 3 + 6 is empty —> Repeater-Image 3 + 6 is hidden!

EDIT: After changes—> it is now the button which is hidden (instead of the image). Read the post till end to understand this changement.