Rename dataSearchType prop to searchType

This commit is contained in:
Tom Southall
2022-02-25 00:39:01 +00:00
parent 70573f6e22
commit f74b64bd5a
10 changed files with 61 additions and 61 deletions

View File

@@ -18,7 +18,7 @@ const listbox = [
data: (query) =>
fetch(`http://localhost:3001/api/search/cities?q=${encodeURIComponent(query)}&limit=${maxItems}`)
.then(response => response.json()),
dataSearchType: 'startswith'
searchType: 'startswith'
},
{
name: 'Airports',
@@ -27,7 +27,7 @@ const listbox = [
data: (query) =>
fetch(`http://localhost:3001/api/search/airports?q=${encodeURIComponent(query)}&limit=${maxItems}`)
.then(response => response.json()),
dataSearchType: 'contains'
searchType: 'contains'
}
]