Showing or hiding button/image linked content from a dataset in a repeater

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?

Try checking if your repeater is connected to the dataset or not…

Then try using the $item scope →

$w.onReady(function () {
    $w("#dataset2").onReady(() => {
        $w("#repeater1").forEachItem(($item, itemData, index) => {
 if (itemData.agenda) {
                $item("#vectorImage10").show();
                $item('#text47').show();
            }
 if (itemData.minutes){
                $item("#vectorImage11").show();
                $item('#text48').show();
            }
 if (itemData.supportingDocuments){
                $item("#vectorImage12").show();
                $item('#text49').show();
            }
        });
    });
})

Hi Matt.
can you please share the live site url?

Hello. I was able to reproduce the issue. Our team is already aware of it and going to fix it soon.
We will be able to fix it a bit quicker in case you share the link to your site.

Sorry for the inconvenience. Regards, Alex

The live site is: https://www.holmeschapelparishcouncil.gov.uk/meetings

I have temp fixed by making all items visible, but not ideal for my client.