bind options and key inside AddPersons component (wip)

This commit is contained in:
2021-05-08 12:57:23 +02:00
parent b24eb93c57
commit ac67f56b09
5 changed files with 36 additions and 9 deletions

View File

@@ -8,7 +8,8 @@ const
*
* @query string - the query to search for
*/
let searchPersons = (query) => {
let searchPersons = ({ query, options }) => {
console.log('options 2', options);
let url = `/${locale}/search.${format}?name=person_regular&q=${query}`;
return fetch(url)
.then(response => {