diff --git a/app/assets/javascripts/discourse/app/components/topic-navigation.js b/app/assets/javascripts/discourse/app/components/topic-navigation.js index d5f456d14a2..f6900776d1e 100644 --- a/app/assets/javascripts/discourse/app/components/topic-navigation.js +++ b/app/assets/javascripts/discourse/app/components/topic-navigation.js @@ -104,7 +104,7 @@ export default class TopicNavigation extends Component { this._checkSize(); } - _collapseFullscreen(delay = 500) { + _collapseFullscreen(postId, delay = 500) { if (this.get("info.topicProgressExpanded")) { $(".timeline-fullscreen").removeClass("show"); discourseLater(() => { @@ -180,7 +180,7 @@ export default class TopicNavigation extends Component { duration: durationMs, fill: "forwards", }) - .finished.then(() => this._collapseFullscreen(0)); + .finished.then(() => this._collapseFullscreen(null, 0)); } else { const distancePx = this.pxClosed; durationMs = this._swipeEvents.getMaxAnimationTimeMs(