We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 38b4573 commit 005abf1Copy full SHA for 005abf1
1 file changed
lib/ui/views/navigation_sections_chapters/navigation_sections_chapters_viewmodel.dart
@@ -35,12 +35,14 @@ class NavigationSectionsChaptersViewModel extends BaseViewModel {
35
bookNumOfChaptersMapping.values.firstWhere((element) => element == bookNumOfChaptersMapping[bookCode]);
36
bookChapters = [for (int i = 1; i <= numOfChapters; i++) i.toString()];
37
38
- // Generate sections
39
- sections = sectionHeadingsMappingForOET[bookCode]!;
40
-
41
// Set whether to show by sections or by chapters
42
displaySections = _biblesService.isReaderBibleOET(readerArea);
43
+ // Generate sections
+ if (displaySections) {
+ sections = sectionHeadingsMappingForOET[bookCode]!;
44
+ }
45
+
46
rebuildUi();
47
}
48
0 commit comments