fix: minor bug
gitea/salix-front/pipeline/pr-master This commit looks good Details

This commit is contained in:
Javier Segarra 2025-03-05 11:19:18 +01:00
parent 78299e0df6
commit 930265d790
1 changed files with 2 additions and 2 deletions

View File

@ -60,7 +60,7 @@ onMounted(async () => {
} else if (route.query?.table) {
const query = route.query?.table;
const clientId = +JSON.parse(query)?.clientFk;
await onClientSelected({ clientId });
if (clientId) await onClientSelected({ clientId });
}
if (tableRef.value) tableRef.value.create.formInitialData = formInitialData.value;
});
@ -287,7 +287,7 @@ watch(
async (newValue) => {
if (newValue) {
const clientId = +JSON.parse(newValue)?.clientFk;
await onClientSelected({ clientId });
if (clientId) await onClientSelected({ clientId });
if (tableRef.value)
tableRef.value.create.formInitialData = formInitialData.value;
}