diff --git a/src/components/CreateBankEntityForm.vue b/src/components/CreateBankEntityForm.vue index 1117225c7..0a3c10f57 100644 --- a/src/components/CreateBankEntityForm.vue +++ b/src/components/CreateBankEntityForm.vue @@ -21,7 +21,7 @@ const customer = computed(() => state.get('customer')); const bankEntityFormData = reactive({ name: null, bic: null, - countryFk: customer.value.countryFk, + countryFk: customer.value?.countryFk, id: null, }); diff --git a/src/components/CreateThermographForm.vue b/src/components/CreateThermographForm.vue index 65a1c2679..0b7e4c5c6 100644 --- a/src/components/CreateThermographForm.vue +++ b/src/components/CreateThermographForm.vue @@ -50,7 +50,7 @@ const onDataSaved = (dataSaved) => { model="thermograph" :title="t('New thermograph')" :form-initial-data="thermographFormData" - @on-data-saved="onDataSaved($event)" + @on-data-saved="(_, response) => onDataSaved(response)" >