From a044c642f621cf46ce381a35a22c9a54f4969531 Mon Sep 17 00:00:00 2001 From: Franz Liedke Date: Fri, 31 Jul 2020 16:12:17 +0200 Subject: [PATCH] Add default parameter value This is actually relied on already by not passing the parameter in other methods. --- js/src/forum/states/PostStreamState.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/src/forum/states/PostStreamState.js b/js/src/forum/states/PostStreamState.js index 5a567d610..56cc5d741 100644 --- a/js/src/forum/states/PostStreamState.js +++ b/js/src/forum/states/PostStreamState.js @@ -81,7 +81,7 @@ class PostStreamState { * @param {Boolean} noAnimation * @return {Promise} */ - goToNumber(number, noAnimation) { + goToNumber(number, noAnimation = false) { // 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') { @@ -111,7 +111,7 @@ class PostStreamState { * @param {Boolean} noAnimation * @return {Promise} */ - goToIndex(index, noAnimation) { + goToIndex(index, noAnimation = false) { this.paused = true; this.loadPromise = this.loadNearIndex(index);