From 765a1887175ad624c5d16f48dc219150a09a9003 Mon Sep 17 00:00:00 2001 From: winkidney Date: Mon, 18 Mar 2019 17:21:25 +0800 Subject: [PATCH] Fix: Should use newPin's length instead of the old length of pin --- pinry/static/js/vue/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pinry/static/js/vue/main.js b/pinry/static/js/vue/main.js index 9d29723..85aef59 100644 --- a/pinry/static/js/vue/main.js +++ b/pinry/static/js/vue/main.js @@ -228,7 +228,7 @@ Vue.component('pin-container', { fetchPins(self.status.offset).then( function (res) { var newPins = self.pins.concat(res.data.results); - self.counter.reset(self.pins.length); + self.counter.reset(newPins.length); self.pins = newPins; self.status.offset += res.data.results.length; if (res.data.next === null) {