diff --git a/src/components/FormModel.vue b/src/components/FormModel.vue
index a92ba29ee40..633f1254d9e 100644
--- a/src/components/FormModel.vue
+++ b/src/components/FormModel.vue
@@ -106,7 +106,7 @@ const isLoading = ref(false);
const isResetting = ref(false);
const hasChanges = ref(!$props.observeFormChanges);
const originalData = computed(() => state.get(modelValue));
-const formData = ref({});
+const formData = ref();
const defaultButtons = computed(() => ({
save: {
dataCy: 'saveDefaultBtn',
diff --git a/src/components/TicketProblems.vue b/src/components/TicketProblems.vue
index 17d9602af6c..783f2556fe8 100644
--- a/src/components/TicketProblems.vue
+++ b/src/components/TicketProblems.vue
@@ -5,6 +5,18 @@ defineProps({ row: { type: Object, required: true } });
+
+
+
+ {{ t('ticketSale.claim') }}:
+ {{ row.claim?.claimFk }}
+
+
+
{{ $t('salesTicketsTable.purchaseRequest') }}
{
vm.state.set(model, formInitialData);
expect(vm.hasChanges).toBe(false);
+ await vm.$nextTick();
vm.formData.mockKey = 'newVal';
await vm.$nextTick();
expect(vm.hasChanges).toBe(true);
@@ -94,8 +95,12 @@ describe('FormModel', () => {
it('should call axios.patch with the right data', async () => {
const spy = vi.spyOn(axios, 'patch').mockResolvedValue({ data: {} });
const { vm } = mount({ propsData: { url, model } });
- vm.formData.mockKey = 'newVal';
+
+ vm.formData = {};
await vm.$nextTick();
+ vm.formData = { mockKey: 'newVal' };
+ await vm.$nextTick();
+
await vm.save();
expect(spy).toHaveBeenCalled();
vm.formData.mockKey = 'mockVal';
diff --git a/src/composables/useCau.js b/src/composables/useCau.js
index a71300464b2..43bfc5180b7 100644
--- a/src/composables/useCau.js
+++ b/src/composables/useCau.js
@@ -11,7 +11,7 @@ export async function useCau(res, message) {
const { config, headers, request, status, statusText, data } = res || {};
const { params, url, method, signal, headers: confHeaders } = config || {};
const { message: resMessage, code, name } = data?.error || {};
- delete confHeaders.Authorization;
+ delete confHeaders?.Authorization;
const additionalData = {
path: location.hash,
diff --git a/src/pages/Customer/components/CustomerAddressEdit.vue b/src/pages/Customer/components/CustomerAddressEdit.vue
index af1b9c16033..f852c160ac2 100644
--- a/src/pages/Customer/components/CustomerAddressEdit.vue
+++ b/src/pages/Customer/components/CustomerAddressEdit.vue
@@ -233,7 +233,7 @@ function handleLocation(data, location) {
postcode: data.postalCode,
city: data.city,
province: data.province,
- country: data.province.country,
+ country: data.province?.country,
}"
@update:model-value="(location) => handleLocation(data, location)"
>
diff --git a/src/pages/Route/Card/RouteDescriptor.vue b/src/pages/Route/Card/RouteDescriptor.vue
index b6d0ba8c460..503cd1941f4 100644
--- a/src/pages/Route/Card/RouteDescriptor.vue
+++ b/src/pages/Route/Card/RouteDescriptor.vue
@@ -6,6 +6,8 @@ import VnLv from 'components/ui/VnLv.vue';
import { dashIfEmpty, toDate } from 'src/filters';
import RouteDescriptorMenu from 'pages/Route/Card/RouteDescriptorMenu.vue';
import filter from './RouteFilter.js';
+import useCardDescription from 'src/composables/useCardDescription';
+import axios from 'axios';
const $props = defineProps({
id: {
@@ -16,7 +18,6 @@ const $props = defineProps({
});
const route = useRoute();
-const { t } = useI18n();
const zone = ref();
const zoneId = ref();
const entityId = computed(() => {
@@ -50,9 +51,9 @@ onMounted(async () => {
width="lg-width"
>
-
-
-
+
+
+
-
- {{ t('futureTickets.noVerified') }}
-
-
-
-
- {{ t('futureTickets.purchaseRequest') }}
-
-
-
-
- {{ t('ticketSale.noVisible') }}
-
-
-
-
- {{ t('futureTickets.clientFrozen') }}
-
-
-
-
- {{ t('futureTickets.risk') }}: {{ row.risk }}
-
-
-
-
- {{ t('futureTickets.componentLack') }}
-
-
-
-
- {{ t('futureTickets.rounding') }}
-
-
+