How to ignore error ' Unable to locate var: XYZ'

I have some external function in function stack, and it can return object with 'result.data' or 'result.error'.

How can I add condition to ignore if func. returns 'result.error' object?

I tried to work around 'result.data' is empty or undefined etc.. and looks like each time system is trying to read missing var.

2 replies