Problem Loading Dynamic Gallery

@liran-kurtz-wix Changed to that…Still it doesn’t populate the correct car…ultra weird… i console.logged the item before quering it and it is the correct one…

let id = $w("#dynamicDataset").getCurrentItem()._id;
console.log($w("#dynamicDataset").getCurrentItem()) // Here i get the correct item info on the console.
wixData.query("Images")
    .eq("ad", id)
    .find()
    .then(function (results) {
    if (results.items.length > 0) {
         let array = results.items;
            array.forEach(function (e) {
                e.src = e.image;
         });
        $w("#gallery1").items = array;
        $w("#gallery1").expand()
    } else {
        $w("#gallery1").collapse()
    }
 })