1
0
mirror of https://github.com/flarum/core.git synced 2025-07-12 12:26:23 +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 8d2d987680
commit 6ea60248e3

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();