I am hiding fields that have Null values in a list. The good news is the fields are hidden, the bad news is it creates a gap or holds that empty row in the list creating large gaps between some of the data. Is there a way to remove the gaps in the list?

var org_status = IIf(IsEmpty($datapoint.built_lost_maintained), 'hidden', 'visible')
var Built = IIf(IsEmpty($datapoint.explain_built), 'hidden', 'visible')
var Lost = IIf(IsEmpty($datapoint.explain_lost), 'hidden', 'visible')
var Maintain = IIf(IsEmpty($datapoint.explain_maintained), 'hidden', 'visible')
return {
textColor: '',
backgroundColor: '',
separatorColor:'',
selectionColor: '',
selectionTextColor: '',
attributes: {
org: org_status,
explainBuilt: Built,
explainLost: Lost,
explainMaintain: Maintain
}
}
Line item template:

@jcarlson
@KenBuja