Sorry code error →
The code should be →
$w.onReady(function () {
$w('#dataset1').onReady( () => {
$w('#repeater1').forEachItem(($item, itemData, index) => {
if (itemData.status === "") {
$item('#container2').collapse();
} else {
$item('#container2').expand();
}
} );
} );
} );
It should be the container in the repeater and not the box