If database textfield is empty, container box collapse

Or do you want to ( only ) collapse the connected text and make the other text in the box show →

$w.onReady(function () {
 $w('#dataset1').onReady( () => {
  $w('#repeater1').forEachItem(($item, itemData, index) => {
 if (itemData.status === "") {
         $item('#text7').collapse(); // connected text
        } else {
         $item('#text7').expand(); // connected text
 
  }
  } );
 } );

} );

This code will only → one of the texts inside the repeater to collapse.