Skip to content

Commit

Permalink
fix stale chapter bug - closes lichess-org#15879
Browse files Browse the repository at this point in the history
  • Loading branch information
brollin committed Aug 12, 2024
1 parent 121cd39 commit 6257349
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/analyse/src/study/chapterNewForm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ export function view(ctrl: StudyChapterNewForm): VNode {
'click',
() => {
xhr
.text(`/study/${study.data.id}/${currentChapter.id}.pgn`)
.text(`/study/${study.data.id}/${study.currentChapter().id}.pgn`)
.then(pgnData => $('#chapter-pgn').val(pgnData));
return false;
},
Expand Down

0 comments on commit 6257349

Please sign in to comment.