fix: Fix bugs

This commit is contained in:
2025-06-07 19:40:54 +03:00
parent 0fe4683683
commit e37f9e14bc
11 changed files with 99 additions and 61 deletions

View File

@ -24,7 +24,7 @@ export const EditSightPage = observer(() => {
const { getArticles } = articlesStore;
const { language } = languageStore;
const { id } = useParams();
const { getCities } = cityStore;
const { getRuCities } = cityStore;
let blocker = useBlocker(
({ currentLocation, nextLocation }) =>
@ -40,7 +40,7 @@ export const EditSightPage = observer(() => {
if (id) {
await getSightInfo(+id, language);
await getArticles(language);
await getCities();
await getRuCities();
}
};
fetchData();