0
0
Fork 0

refs #6772 perf: change variable name

This commit is contained in:
Javier Segarra 2024-03-07 11:30:37 +00:00
parent 7e4485ef38
commit 60c8b0be39
1 changed files with 4 additions and 4 deletions

View File

@ -99,11 +99,11 @@ watch(
if (route.params.id) store.url = store.url.replace(/(\d+)/, route.params.id); if (route.params.id) store.url = store.url.replace(/(\d+)/, route.params.id);
} else { } else {
// Cuando el usuario cambia en la URL // Cuando el usuario cambia en la URL
const claveFk = Object.keys(arrayData.store.filter.where).find((clave) => const keyFk = Object.keys(arrayData.store.filter.where).find((key) =>
clave.endsWith('Fk') key.endsWith('Fk')
); );
if (claveFk) { if (keyFk) {
arrayData.store.filter.where[claveFk] = route.params.id; arrayData.store.filter.where[keyFk] = route.params.id;
} }
} }