Merged in fix/SW-2838-in-select-hotel-lang-switch- (pull request #2261)
fix: SW-2838 Use of city identifier instead of city name * fix: SW-2838 Updated selection to city identifier instead of city name Approved-by: Christian Andolf Approved-by: Linus Flood
This commit is contained in:
@@ -49,6 +49,7 @@ export function filterAutoCompleteLocations<T extends AutoCompleteLocation>(
|
||||
({
|
||||
id: x.item.id,
|
||||
name: x.item.name,
|
||||
cityIdentifier: x.item.cityIdentifier,
|
||||
destination: x.item.destination,
|
||||
searchTokens: x.item.searchTokens,
|
||||
type: x.item.type,
|
||||
|
||||
@@ -18,5 +18,7 @@ export function mapLocationToAutoCompleteLocation(
|
||||
location.type === "hotels"
|
||||
? location.relationships.city.name
|
||||
: location.country,
|
||||
cityIdentifier:
|
||||
location.type === "cities" ? location.cityIdentifier : undefined,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user