From a93e4b9ae69b677a51cf2072f63b1ac823527b87 Mon Sep 17 00:00:00 2001 From: johndoknjas Date: Thu, 21 Nov 2024 21:55:02 -0800 Subject: [PATCH] Increase the max number of study chapters to 256. --- modules/study/src/main/Study.scala | 2 +- ui/analyse/src/study/studyChapters.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/study/src/main/Study.scala b/modules/study/src/main/Study.scala index bbba1ebdf361..6b5c67ad271c 100644 --- a/modules/study/src/main/Study.scala +++ b/modules/study/src/main/Study.scala @@ -89,7 +89,7 @@ case class Study( object Study: - val maxChapters = Max(64) + val maxChapters = Max(256) val previewNbMembers = 4 val previewNbChapters = 4 diff --git a/ui/analyse/src/study/studyChapters.ts b/ui/analyse/src/study/studyChapters.ts index a235cc361364..e50228d92267 100644 --- a/ui/analyse/src/study/studyChapters.ts +++ b/ui/analyse/src/study/studyChapters.ts @@ -69,7 +69,7 @@ export default class StudyChaptersCtrl { sort = (ids: string[]) => this.send('sortChapters', ids); toggleNewForm = () => { - if (this.newForm.isOpen() || this.list.size() < 64) this.newForm.toggle(); + if (this.newForm.isOpen() || this.list.size() < 256) this.newForm.toggle(); else alert('You have reached the limit of 64 chapters per study. Please create a new study.'); }; loadFromServer = (chapters: ChapterPreviewFromServer[]) =>