diff --git a/src/components/03_customer-management/FormEmployeePassport.vue b/src/components/03_customer-management/FormEmployeePassport.vue index 1eb9096d..5fe21b52 100644 --- a/src/components/03_customer-management/FormEmployeePassport.vue +++ b/src/components/03_customer-management/FormEmployeePassport.vue @@ -103,7 +103,7 @@ onMounted(() => { 'label', ); passportIssuingCountryFilter = selectFilterOptionRefMod( - ref(optionStore.globalOption.nationality), + ref(optionStore.rawOption?.eng.nationality), passportIssuingCountryOptions, 'label', ); @@ -121,13 +121,13 @@ onMounted(() => { ); genderFilter = selectFilterOptionRefMod( - ref(optionStore.globalOption?.gender), + ref(optionStore.rawOption?.eng.gender), genderOptions, 'label', ); nationalityFilter = selectFilterOptionRefMod( - ref(optionStore.globalOption?.nationality), + ref(optionStore.rawOption?.eng.nationality), nationalityOptions, 'label', ); @@ -152,7 +152,7 @@ watch( ); passportIssuingCountryFilter = selectFilterOptionRefMod( - ref(optionStore.globalOption.nationality), + ref(optionStore.rawOption?.eng.nationality), passportIssuingCountryOptions, 'label', ); @@ -164,13 +164,13 @@ watch( ); genderFilter = selectFilterOptionRefMod( - ref(optionStore.globalOption?.gender), + ref(optionStore.rawOption?.eng.gender), genderOptions, 'label', ); nationalityFilter = selectFilterOptionRefMod( - ref(optionStore.globalOption?.nationality), + ref(optionStore.rawOption?.eng.nationality), nationalityOptions, 'label', ); diff --git a/src/stores/options/index.ts b/src/stores/options/index.ts index d425389b..469d991f 100644 --- a/src/stores/options/index.ts +++ b/src/stores/options/index.ts @@ -75,6 +75,7 @@ const useOptionStore = defineStore('optionStore', () => { } return { + rawOption, globalOption, mapOption, };