diff --git a/src/components/CreateNewPostcodeForm.vue b/src/components/CreateNewPostcodeForm.vue
index 030ca1388..03cba8ac7 100644
--- a/src/components/CreateNewPostcodeForm.vue
+++ b/src/components/CreateNewPostcodeForm.vue
@@ -108,11 +108,11 @@ watch(
watch(
() => postcodeFormData.provinceFk,
- async (newProvinceFk) => {
+ async (newProvinceFk, oldValueFk) => {
if (Array.isArray(newProvinceFk)) {
newProvinceFk = newProvinceFk[0];
}
- if (newProvinceFk !== postcodeFormData.provinceFk) {
+ if (newProvinceFk !== oldValueFk) {
await townsFetchDataRef.value.fetch({
where: { provinceFk: newProvinceFk },
});
@@ -147,13 +147,7 @@ async function handleCountries(data) {
auto-load
url="Towns/location"
/>
-
+