1
0
mirror of https://github.com/flarum/core.git synced 2025-07-18 23:31:17 +02:00

always return a promise in PostStream#update

This commit is contained in:
David Sevilla Martín
2018-03-18 20:37:04 -04:00
committed by GitHub
parent 92cb3b9166
commit 80de4fe797

View File

@@ -122,7 +122,7 @@ class PostStream extends Component {
* @public
*/
update() {
if (!this.viewingEnd) return;
if (!this.viewingEnd) return Promise.resolve();
this.visibleEnd = this.count();