From 60c8b0be39d4fd00ed5682d888b2ae155bc9196c Mon Sep 17 00:00:00 2001 From: JAVIER SEGARRA MARTINEZ Date: Thu, 7 Mar 2024 11:30:37 +0000 Subject: [PATCH] refs #6772 perf: change variable name --- src/components/ui/VnPaginate.vue | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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; } }