Skip to content

Commit

Permalink
Merge pull request #147 from unfoldingWord/qafail-mcleanb-7172
Browse files Browse the repository at this point in the history
QA Fail 7172/Fix for verse spans not giving invalidated selections warnings
  • Loading branch information
mannycolon committed Jan 12, 2022
2 parents 021560c + f884979 commit 08a40cc
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "checking-tool-wrapper",
"description": "Checking tool wrapper for translationCore App",
"version": "7.0.0",
"version": "7.0.1",
"main": "lib/index.js",
"scripts": {
"lint": "eslint ./src",
Expand Down
3 changes: 2 additions & 1 deletion src/localStorage/saveMethods.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,15 @@ import { PROJECT_CHECKDATA_DIRECTORY, PROJECT_INDEX_FOLDER_PATH } from '../commo
* @example comments, bookmarks, selections, verseEdits etc.
* @param {String} modifiedTimestamp - timestamp.
* that contains the specific timestamp.
* @param {String} projectSaveLocation
* @return {String} save path.
*/
function generateSavePath(contextId, checkDataName, modifiedTimestamp, projectSaveLocation) {
try {
if (projectSaveLocation && contextId && modifiedTimestamp) {
const bookId = contextId.reference.bookId;
const chapter = contextId.reference.chapter.toString();
const verse = contextId.reference.verse.toString();
const verse = contextId.verseSpan || contextId.reference.verse.toString();
const fileName = modifiedTimestamp + '.json';
const savePath = path.join(
projectSaveLocation,
Expand Down

0 comments on commit 08a40cc

Please sign in to comment.