diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2019-04-25 07:46:39 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2019-04-25 07:46:39 +0900 |
| commit | 0db54386cdef3f444f1afb4f3b8bfcaeab7ac68d (patch) | |
| tree | 38d3d6b2112326bb1a03a8732cd8969e24d693de /src/client/app/mobile/views/components | |
| parent | Fix #4793 (diff) | |
| download | misskey-0db54386cdef3f444f1afb4f3b8bfcaeab7ac68d.tar.gz misskey-0db54386cdef3f444f1afb4f3b8bfcaeab7ac68d.tar.bz2 misskey-0db54386cdef3f444f1afb4f3b8bfcaeab7ac68d.zip | |
Resolve #3119
Diffstat (limited to 'src/client/app/mobile/views/components')
| -rw-r--r-- | src/client/app/mobile/views/components/notes.vue | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/client/app/mobile/views/components/notes.vue b/src/client/app/mobile/views/components/notes.vue index 2e42300717..5ad80c286d 100644 --- a/src/client/app/mobile/views/components/notes.vue +++ b/src/client/app/mobile/views/components/notes.vue @@ -106,9 +106,9 @@ export default Vue.extend({ this.init(); }, - init() { + async init() { this.fetching = true; - this.makePromise().then(x => { + await (this.makePromise()).then(x => { if (Array.isArray(x)) { this.notes = x; } else { @@ -123,10 +123,10 @@ export default Vue.extend({ }); }, - fetchMore() { + async fetchMore() { if (!this.more || this.moreFetching || this.notes.length === 0) return; this.moreFetching = true; - this.makePromise(this.notes[this.notes.length - 1].id).then(x => { + await (this.makePromise(this.notes[this.notes.length - 1].id)).then(x => { this.notes = this.notes.concat(x.notes); this.more = x.more; this.moreFetching = false; |