mirror of
https://github.com/pinry/pinry.git
synced 2025-11-18 02:40:40 +01:00
Fix: Should use newPin's length instead of the old length of pin
This commit is contained in:
committed by
Isaac Bythewood
parent
e1d245f531
commit
765a188717
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user