Updated logo API
This commit is contained in:
@@ -46,7 +46,7 @@ const lookupError = ref<string | null>(null)
|
||||
const lookupComplete = ref(true)
|
||||
|
||||
interface LookupResult {
|
||||
airline_options: { value: number; title: string }[]
|
||||
airline_options: { value: number; title: string, logo_url: string }[]
|
||||
from_options: { value: number; title: string; country_code: string }[]
|
||||
to_options: { value: number; title: string; country_code: string }[]
|
||||
aircraft_options: { value: number; title: string }[]
|
||||
@@ -72,7 +72,6 @@ async function lookupFlight() {
|
||||
}
|
||||
lookupResult.value = data
|
||||
lookupComplete.value = true
|
||||
|
||||
if (data.airline_options?.length) {
|
||||
airlineOptionsData.value = data.airline_options
|
||||
if (!form.airline) form.airline = data.airline_options[0]
|
||||
|
||||
Reference in New Issue
Block a user