Skip to content

Commit

Permalink
fix load newly created study chapter
Browse files Browse the repository at this point in the history
  • Loading branch information
ornicar committed Jun 21, 2024
1 parent 7bb68ee commit 56008b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/analyse/src/study/studyCtrl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -702,7 +702,7 @@ export default class StudyCtrl {
this.setMemberActive(d.w);
if (d.s && !this.vm.mode.sticky) this.vm.behind++;
if (d.s) this.data.position = d.p;
else if (d.w && d.w.s === site.sri) {
if (d.w?.s === site.sri) {
this.vm.mode.write = this.relayData ? this.relayRecProp() : this.nonRelayRecMapProp(this.data.id);
this.vm.chapterId = d.p.chapterId;
}
Expand Down

0 comments on commit 56008b2

Please sign in to comment.