mirror of
https://github.com/flarum/framework.git
synced 2025-03-02 10:37:40 +08:00
always return a promise in PostStream#update
This commit is contained in:
parent
92cb3b9166
commit
80de4fe797
@ -122,7 +122,7 @@ class PostStream extends Component {
|
|||||||
* @public
|
* @public
|
||||||
*/
|
*/
|
||||||
update() {
|
update() {
|
||||||
if (!this.viewingEnd) return;
|
if (!this.viewingEnd) return Promise.resolve();
|
||||||
|
|
||||||
this.visibleEnd = this.count();
|
this.visibleEnd = this.count();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user