0
0
Fork 0

refs #6722 perf: not fetch when id not exists

This commit is contained in:
Javier Segarra 2024-02-26 10:38:03 +01:00
parent 3bf984be5c
commit f4ddc7001b
1 changed files with 1 additions and 1 deletions

View File

@ -96,7 +96,7 @@ watch(
store.data = null;
if (!arrayData.store?.filter?.where) {
//Cuando el cambio viene por VnSearchbar
store.url = store.url.replace(/(\d+)/, route.params.id);
if (route.params.id) store.url = store.url.replace(/(\d+)/, route.params.id);
} else {
// Cuando el usuario cambia en la URL
const claveFk = Object.keys(arrayData.store.filter.where).find((clave) =>