I’m trying to get a specific value of current item of a dataset which is filtered based on another dataset (has a reference to it in the collction) e.g email dataset filtered by person dataset.
I understand that even when the filter does not match the other dataset, getCurrentItem() still returns an object which is null or undefined.
Due to that I’ve added a check for it, so if it is null or undefined I’m not trying to get the field value.
In preview mode it works great but when I check it on live site it throws null value error.
Furthermore, when I open the chrome debugger and checking the getCurrentItem object it reports that it is not available.
PFA the related code from the chrome debugger.
Does anyone have an explanation for this?