I have a website where I built a dataset and repeater, within the dataset there are sections for the end user to add a URL, the repeater, by default has the images that link to the URLs, these are hidden on load, I had used the code to show the images IF the dataset for that item contained a URL.
It all worked perfectly until the last 2 weeks when it stopped and now all items are hidden even if there is a link. the dataset hasn’t changed or the code.
If I preview the site the code works as it should, and there are no errors in the log.
This is the code
import wixData from 'wix-data';
$w.onReady(function () {
$w("#dataset2").onReady(() => {
$w("#repeater1").forEachItem(($w, itemData, index) => {
if (itemData.agenda) {
$w("#vectorImage10").show();
$w('#text47').show();
}
if (itemData.minutes){
$w("#vectorImage11").show();
$w('#text48').show();
}
if (itemData.supportingDocuments){
$w("#vectorImage12").show();
$w('#text49').show();
}
});
});
})
Any ideas?