Merged in fix/SW-2921-countryName (pull request #2249)
fix(SW-2921): Moved countryName to attributes in locations schema * fix(SW-2921): Moved countryName to attributes in locations schema Approved-by: Linus Flood
This commit is contained in:
committed by
Linus Flood
parent
26b005d72a
commit
42701739a0
@@ -440,7 +440,7 @@ export const locationsSchema = z.object({
|
||||
if (location.type === "cities") {
|
||||
return {
|
||||
...location.attributes,
|
||||
country: location?.countryName || "",
|
||||
country: location.attributes.countryName || "",
|
||||
id: location.id,
|
||||
type: location.type,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user