How to disable image link to dynamic page on specific items in repeater?

Product:
Wix Editor

What are you trying to achieve:
Is there a way to disable clicking on specific images listed in A dynamic List Page? I still want them to be displayed in the list, just not clickable.

What have you already tried:
I tried to doing something similar to this but instead of a button I’m using clickable images.

Here’s the code that i tried:

$w("#repeater8").onItemReady(($item, itemData, index) => {
    // Check if the 'isunclickable' field is true
    if (itemData.isUnclickable) {
        $item("#image6").link = ""; 
    }
});

});

It didn’t work and still directed me to the dynamic Item Page. I’m still new to Velo so any help would be appriciated!