forked from verdnatura/salix-front
refs #6772 perf: change variable name
This commit is contained in:
parent
7e4485ef38
commit
60c8b0be39
|
@ -99,11 +99,11 @@ watch(
|
|||
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) =>
|
||||
clave.endsWith('Fk')
|
||||
const keyFk = Object.keys(arrayData.store.filter.where).find((key) =>
|
||||
key.endsWith('Fk')
|
||||
);
|
||||
if (claveFk) {
|
||||
arrayData.store.filter.where[claveFk] = route.params.id;
|
||||
if (keyFk) {
|
||||
arrayData.store.filter.where[keyFk] = route.params.id;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue