How do I get the label from the autocomplete? For now I only get the value.
I use the labelExtractor for the autocomplete but I get "Cannot read property "toUpperCase" of undefined".
-
labelExtractor={({ label }) => console.log('label', label)}
-
labelExtractor={item => console.log(typeof item.label)}