mirror of
https://github.com/flarum/framework.git
synced 2024-11-30 05:13:37 +08:00
Merge pull request #1392 from datitisev/patch-2
Always return a promise in PostStream#update
This commit is contained in:
commit
9c804767db
|
@ -122,7 +122,7 @@ class PostStream extends Component {
|
||||||
* @public
|
* @public
|
||||||
*/
|
*/
|
||||||
update() {
|
update() {
|
||||||
if (!this.viewingEnd) return;
|
if (!this.viewingEnd) return m.deferred().resolve().promise;
|
||||||
|
|
||||||
this.visibleEnd = this.count();
|
this.visibleEnd = this.count();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user