1
0
mirror of https://github.com/flarum/core.git synced 2025-08-10 02:17:37 +02:00

Fix goToLast

This commit is contained in:
Alexander Skvortsov
2020-07-05 22:41:14 -04:00
committed by Franz Liedke
parent 51008bc65d
commit c03feceb9f

View File

@@ -57,9 +57,7 @@ class PostStreamState {
// If we want to go to the reply preview, then we will go to the end of the
// discussion and then scroll to the very bottom of the page.
if (number === 'reply') {
return this.goToLast().then(() => {
this.trigger('scrollToIndex', this.count());
});
return this.goToLast();
}
this.paused = true;