diff --git a/src/components/ui/VnPaginate.vue b/src/components/ui/VnPaginate.vue index 5faf69c06..a5651b27a 100644 --- a/src/components/ui/VnPaginate.vue +++ b/src/components/ui/VnPaginate.vue @@ -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; } }