Commit 61078b57 authored by Markus Scheidgen's avatar Markus Scheidgen
Browse files

Fixed missing trigger for autocomplete on domain properties.

parent 9dcd63b1
......@@ -126,13 +126,16 @@ export default function SearchBar() {
setInputValue(value)
const [quantity, quantityValue] = Options.split(value)
if (searchQuantities[quantity]) {
loadOptions(quantity, quantityValue)
const searchQuantity = Object
.keys(searchQuantities)
.find(key => key === quantity || key === domain.key + '.' + quantity)
if (searchQuantity) {
loadOptions(searchQuantity, quantityValue)
} else {
setOptions(defaultOptions)
}
}
}, [loadOptions, defaultOptions])
}, [loadOptions, defaultOptions, domain])
const handleChange = (event, entries) => {
const newQuery = entries.reduce((query, entry) => {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment