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);
|
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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue