diff --git a/src/components/ui/VnPaginate.vue b/src/components/ui/VnPaginate.vue index 2e3927871..509498eb9 100644 --- a/src/components/ui/VnPaginate.vue +++ b/src/components/ui/VnPaginate.vue @@ -96,7 +96,7 @@ watch( store.data = null; if (!arrayData.store?.filter?.where) { //Cuando el cambio viene por VnSearchbar - store.url = store.url.replace(/(\d+)/, route.params.id); + 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) =>