forked from verdnatura/salix-front
feat(VnLocation): onCityCreated refresh provinces
This commit is contained in:
parent
97d4a755e9
commit
3a64929c05
|
@ -45,6 +45,7 @@ function onDataSaved(formData) {
|
|||
}
|
||||
|
||||
async function onCityCreated(newTown, formData) {
|
||||
await provincesFetchDataRef.value.fetch();
|
||||
newTown.province = provincesOptions.value.find(
|
||||
(province) => province.id === newTown.provinceFk
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue