0
0
Fork 0

warmFix(ticketSummary): change this. → .value

This commit is contained in:
Alex Moreno 2024-01-03 07:47:38 +01:00
parent 24818f5daa
commit 046b69d89e
2 changed files with 5 additions and 5 deletions

View File

@ -16,7 +16,7 @@ export function useUserConfig() {
return data; return data;
} catch (error) { } catch (error) {
notify('globals.errors.userConfig', 'negative'); notify('errors.userConfig', 'negative');
console.error('Error fetching user config:', error); console.error('Error fetching user config:', error);
} }
} }

View File

@ -49,7 +49,7 @@ async function setData(data) {
function formattedAddress() { function formattedAddress() {
if (!ticket.value) return ''; if (!ticket.value) return '';
const address = this.ticket.address; const address = ticket.value.address;
const postcode = address.postalCode; const postcode = address.postalCode;
const province = address.province ? `(${address.province.name})` : ''; const province = address.province ? `(${address.province.name})` : '';
@ -58,7 +58,7 @@ function formattedAddress() {
function isEditable() { function isEditable() {
try { try {
return !this.ticket.ticketState.state.alertLevel; return !ticket.value.ticketState.state.alertLevel;
} catch (e) { } catch (e) {
console.error(e); console.error(e);
} }
@ -67,10 +67,10 @@ function isEditable() {
} }
async function changeState(value) { async function changeState(value) {
if (!this.ticket.id) return; if (!ticket.value.id) return;
const formData = { const formData = {
ticketFk: this.ticket.id, ticketFk: ticket.value.id,
code: value, code: value,
}; };