Improve warp

This commit is contained in:
syuilo 2019-04-18 22:00:11 +09:00
parent 8aaab195c6
commit fda8cf77ed
No known key found for this signature in database
GPG key ID: BDC4C49D06AB9D69
7 changed files with 47 additions and 7 deletions

View file

@ -123,7 +123,7 @@ export default Vue.extend({
},
fetchMore() {
if (!this.more || this.moreFetching) return;
if (!this.more || this.moreFetching || this.notes.length === 0) return;
this.moreFetching = true;
this.makePromise(this.notes[this.notes.length - 1].id).then(x => {
this.notes = this.notes.concat(x.notes);