From 46767810a49a474f158dae74d23f2ad1b5b9967c Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Sun, 26 Apr 2020 02:47:47 -0600 Subject: [PATCH] Update Profile.vue component, fix pagination bug --- resources/assets/js/components/Profile.vue | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/resources/assets/js/components/Profile.vue b/resources/assets/js/components/Profile.vue index 6e859499..0acccfa6 100644 --- a/resources/assets/js/components/Profile.vue +++ b/resources/assets/js/components/Profile.vue @@ -760,8 +760,13 @@ self.ids.push(d.id); } }); + let max = Math.min(...this.ids); + if(max == this.max_id) { + $state.complete(); + return; + } this.min_id = Math.max(...this.ids); - this.max_id = Math.min(...this.ids); + this.max_id = max; $state.loaded(); this.loading = false; } else {