Skip to content

Commit

Permalink
Merge pull request #596 from eb1/master
Browse files Browse the repository at this point in the history
Fix #595
  • Loading branch information
eb1 authored Sep 5, 2024
2 parents ff09512 + de4aad8 commit 2b44f3a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions www/js/utils/scrIDs.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ define(function (require) {
{
id: "JOS",
name: "Joshua",
num: [18, 24, 17, 24, 15, 27, 26, 35, 27, 43, 23, 24, 33, 15, 63, 10, 18, 28, 51, 9, 45, 34, 16, 33],
chapters: 24
num: 6,
chapters: [18, 24, 17, 24, 15, 27, 26, 35, 27, 43, 23, 24, 33, 15, 63, 10, 18, 28, 51, 9, 45, 34, 16, 33]
},
{
id: "JDG",
Expand Down
4 changes: 2 additions & 2 deletions www/js/views/DocumentViews.js
Original file line number Diff line number Diff line change
Expand Up @@ -3084,11 +3084,11 @@ define(function (require) {
// reset the objects to the beginning of this book (chapter 1)
chapterID = book.get("chapters")[0]; // first chapter of the current book (UUID string)
chapter = chapters.where({chapterid: chapterID})[0]; // chapter object from chapters list
if (chapter === null) {
if (typeof(chapter) === "undefined" || chapter === null) {
// Ugh. Can't find the chapter in the list. This _might_ mean that we had a corruption
// when deleting a chapter / book earlier -- error out.
errMsg = i18n.t("view.dscErrMergeNoChapID", {chapter: chapterID});
return false;
importFail(new Error(errMsg));
}
chapterName = chapter.get("name");
// get the existing source phrases in this chapter (empty if this is a new import)
Expand Down

0 comments on commit 2b44f3a

Please sign in to comment.