Skip to content

Commit

Permalink
Disabling auto display of 1st chapter of the selected book in the scope
Browse files Browse the repository at this point in the history
  • Loading branch information
vipinpaul committed Sep 3, 2024
1 parent 1fb4d4c commit 8ee3dcd
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,8 @@ const AudioEditor = ({ editor }) => {
const _books = [];
Object.entries(_data.type.flavorType.currentScope).forEach(
async ([key]) => {
if (key === bookId.toUpperCase()) {
// Checking whether the selected book and chapter is in the scope or not
if (key === bookId.toUpperCase() && _data.type.flavorType.currentScope[key].includes(chapter)) {
_books.push(bookId.toUpperCase());
const fs = window.require('fs');
const path = require('path');
Expand Down

0 comments on commit 8ee3dcd

Please sign in to comment.