|
|
@@ -20,6 +20,7 @@
|
|
|
v-model="selectedCountry"
|
|
|
:label="$t('ui.navigation.country')"
|
|
|
:rules="[inputRules.required]"
|
|
|
+ :initial-id="form.country_id"
|
|
|
class="col-md-6 col-12"
|
|
|
/>
|
|
|
<q-select
|
|
|
@@ -82,10 +83,10 @@ const { dialogRef, onDialogHide, onDialogOK, onDialogCancel } =
|
|
|
const formRef = useTemplateRef("formRef");
|
|
|
|
|
|
const { form, getUpdatedFields, hasUpdatedFields } = useFormUpdateTracker({
|
|
|
- name: state ? state.name : "",
|
|
|
- code: state ? state.code : "",
|
|
|
- country_id: state ? state.country_id : null,
|
|
|
- status: state ? state.status : "ACTIVE",
|
|
|
+ name: state ? state?.name : "",
|
|
|
+ code: state ? state?.code : "",
|
|
|
+ country_id: state ? state?.country_id : null,
|
|
|
+ status: state ? state?.status : "ACTIVE",
|
|
|
});
|
|
|
|
|
|
const loading = ref(false);
|