Error rendering component
TypeError: Cannot read property 'indexOf' of undefined