diff --git a/src/pages/Ticket/TicketList.vue b/src/pages/Ticket/TicketList.vue index aa666be98..a66a0b7f6 100644 --- a/src/pages/Ticket/TicketList.vue +++ b/src/pages/Ticket/TicketList.vue @@ -273,9 +273,8 @@ const fetchAddresses = async (formData) => { if (!formData.clientId) return; const filter = { - fields: ['nickname', 'street', 'city', 'id'], - where: { isActive: true }, - order: 'nickname ASC', + fields: ['nickname', 'street', 'city', 'id', 'isActive'], + order: ['isDefaultAddress DESC', 'isActive DESC', 'nickname ASC'], }; const params = { filter: JSON.stringify(filter) }; const { data } = await axios.get(`Clients/${formData.clientId}/addresses`, { @@ -643,7 +642,22 @@ function setReference(data) { @update:model-value="() => fetchAvailableAgencies(data)" >