$w.onReady(() => {
$w(“#dataset7”).onReady(() => {
// Gets the current item properties and stores them in a variable called item
const item = $w(“#dataset7”).getCurrentItem();
// Checks if the current item has a value in the “postImage” field
if (!item.postImage) {
// Collapses the image if there is no value for “postImage”
$w(“#image5”).collapse();
}
});
});
instead of $w(" #repeater1 “).onItemReady(($ w , itemData, index) =>{
use:
$w(” #repeater1 “).onItemReady(( $item , itemData, index) =>{
instead of: $ w (”#Image5").collapse(); use $ item (“#Image5”).collapse();
and you’re missing }) in the end of your code