I have some elements which are displayed based on some conditions,is there anyway to bypass the object property if not found as I am getting error if not found TypeError: Cannot read property 'top' of undefined at Object._scrollToElement in case it is not displayed.
Hi,
I have some elements which are displayed based on some conditions,is there anyway to bypass the object property if not found as I am getting error if not found TypeError: Cannot read property 'top' of undefined at Object._scrollToElement in case it is not displayed.