diff --git a/ui/analyse/src/study/studyCtrl.ts b/ui/analyse/src/study/studyCtrl.ts index 71294e5b67d0..08e18d8372b6 100644 --- a/ui/analyse/src/study/studyCtrl.ts +++ b/ui/analyse/src/study/studyCtrl.ts @@ -444,13 +444,12 @@ export default class StudyCtrl { likeToggler = debounce(() => this.send('like', { liked: this.data.liked }), 1000); setChapter = (id: string, force?: boolean) => { - if (id === this.vm.chapterId && !force) { - if (this.relay?.tourShow()) { - this.relay?.tourShow(false); - this.redraw(); - } - return; + const alreadySet = id === this.vm.chapterId && !force; + if (this.relay?.tourShow()) { + this.relay.tourShow(false); + if (alreadySet) this.redraw(); } + if (alreadySet) return; if (!this.vm.mode.sticky || !this.makeChange('setChapter', id)) { this.vm.mode.sticky = false; if (!this.vm.behind) this.vm.behind = 1;