fix: Fix Map page

This commit is contained in:
2025-06-12 22:50:43 +03:00
parent 27cb644242
commit 300ff262ce
41 changed files with 2216 additions and 1055 deletions

View File

@ -163,17 +163,22 @@ export const InformationTab = observer(
/>
<Autocomplete
options={ruCities ?? []}
options={ruCities?.data ?? []}
value={
ruCities.find((city) => city.id === sight.common.city_id) ??
null
ruCities?.data?.find(
(city) => city.id === sight.common.city_id
) ?? null
}
getOptionLabel={(option) => option.name}
onChange={(_, value) => {
setCity(value?.id ?? 0);
handleChange(language as Language, {
city_id: value?.id ?? 0,
});
handleChange(
language as Language,
{
city_id: value?.id ?? 0,
},
true
);
}}
renderInput={(params) => (
<TextField {...params} label="Город" />