SummitRoute / react-structured-filter

(unmaintained) Javascript library that provides autocompleted faceted search queries for React.
Other
174 stars 70 forks source link

Cannot read property 'slice' of undefined #7

Open srakshit opened 8 years ago

srakshit commented 8 years ago

Hi @joshcarr ,

I'm using the minimalist feature of the filter like

<StructuredFilter
    placeholder="Search..."
    options={[
        {category:"Name",type:"text"},
        {category:"Price",type:"number"},
    ]}
/>

and I'm getting the error

Uncaught TypeError: Cannot read property 'slice' of undefined
getStateFromProps 
Tokenizer 
constructComponentWithoutOwner 

Could you please help.

joshcarr commented 8 years ago

addressed this in joshcarr/react-structured-filter/issues/7