0
0
Fork 0

fix: minor bug

This commit is contained in:
Javier Segarra 2025-03-05 10:31:29 +01:00
parent b2566c1cc9
commit 2cecd6f6ab
2 changed files with 3 additions and 2 deletions

View File

@ -57,7 +57,7 @@ onMounted(async () => {
if (route.query?.createForm) {
formInitialData.value = JSON.parse(route.query?.createForm);
await onClientSelected(formInitialData.value);
} else {
} else if (route.query?.table) {
const query = route.query?.table;
const clientId = +JSON.parse(query)?.clientFk;
await onClientSelected({ clientId });
@ -65,6 +65,7 @@ onMounted(async () => {
if (tableRef.value) tableRef.value.create.formInitialData = formInitialData.value;
});
const initializeFromQuery = () => {
if (!route) return;
const query = route.query.table ? JSON.parse(route.query.table) : {};
from.value = query.from || from.toISOString();
to.value = query.to || to.toISOString();

View File

@ -1,5 +1,5 @@
/// <reference types="cypress" />
describe('TicketList', () => {
describe.only('TicketList', () => {
const firstRow = 'tbody.q-virtual-scroll__content tr:nth-child(1)';
beforeEach(() => {