feat(VnLocation): onCityCreated refresh provinces
gitea/salix-front/pipeline/head This commit looks good Details

This commit is contained in:
Alex Moreno 2024-08-01 10:35:33 +02:00
parent 97d4a755e9
commit 3a64929c05
1 changed files with 1 additions and 0 deletions

View File

@ -45,6 +45,7 @@ function onDataSaved(formData) {
} }
async function onCityCreated(newTown, formData) { async function onCityCreated(newTown, formData) {
await provincesFetchDataRef.value.fetch();
newTown.province = provincesOptions.value.find( newTown.province = provincesOptions.value.find(
(province) => province.id === newTown.provinceFk (province) => province.id === newTown.provinceFk
); );