I am trying to filter an array like in this react example except using an array i\'ve pulled in from graphql in a gatsby site. Im getting hit with the error "TypeError: