ok. did a quick test with the code you posted. I get following error message:
TypeError: $w(…).getCurrentItem is not a function
this is the code to that error message:
$w.onReady( function () {
let imageArr = [];
let item = $w(‘#PROYECT-DATA-Items’).getCurrentItem();
Object.keys(item).filter((key => {
if (key.includes(“image”, 0)) {
imageArr.push({“src”: item[key]})
}
})
);
$w(‘#gallery1’).items = imageArr;
});