Fixed frontend linter
This commit is contained in:
parent
0b86ed9254
commit
6532fbebb1
2 changed files with 6 additions and 6 deletions
|
|
@ -3,11 +3,11 @@ export interface Street {
|
|||
city: string
|
||||
}
|
||||
|
||||
export async function search (search_term: string): Promise<Street[]> {
|
||||
const base_url = import.meta.env.VITE_ENDPOINT as string
|
||||
export async function search (searchTerm: string): Promise<Street[]> {
|
||||
const baseURL = import.meta.env.VITE_ENDPOINT as string
|
||||
|
||||
const r = await fetch(`${base_url}/ivago/search?` + new URLSearchParams({
|
||||
q: search_term
|
||||
const r = await fetch(`${baseURL}/ivago/search?` + new URLSearchParams({
|
||||
q: searchTerm
|
||||
}))
|
||||
|
||||
if (!r.ok) {
|
||||
|
|
|
|||
Reference in a new issue