Hello @Programmer89, could you please replace the previous code with the following one and replace the BLOCKID with your actual block name
<script>
window.addEventListener('block-loaded-BLOCKID', () => {
window.addEventListener('get-record-BLOCKID', () => {
[...document.querySelectorAll('#BLOCKID .label-wrapper')].forEach((item) => {
setTimeout(()=> {
if(item.hasAttribute('data-field-empty-wr')){
item.parentElement.remove();
}
}, 100)
})
});
});
</script>