I\'m still learning react. The data is retrieved from the redux action and store as props. My problem is that my variable is undefined after a filter function executed. What