Browse Source

Fix: Should use newPin's length instead of the old length of pin

pull/169/head
winkidney 5 years ago
committed by Isaac Bythewood
parent
commit
765a188717
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      pinry/static/js/vue/main.js

+ 1
- 1
pinry/static/js/vue/main.js View File

@@ -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) {


Loading…
Cancel
Save