Skip to content

Commit

Permalink
Merge branch 'hotfix-10.2' of github.com:unfoldingWord-dev/ts-desktop…
Browse files Browse the repository at this point in the history
… into hotfix-10.2
  • Loading branch information
da1nerd committed Dec 6, 2016
2 parents 9c4de25 + b3c906f commit f40375c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/database.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ function DataManager(db) {
getFrameUdb: function (source, chapterid, verseid) {
var sources = this.getSources();
var udbsource = _.filter(sources, {'language_id': source.language_id, 'project_id': source.project_id, 'checking_level': 3, 'resource_id': 'udb'});
var s = udbsource[0].id,
var s = udbsource[0] ? udbsource[0].id : "",
r = query([
"select f.id, f.slug 'verse', f.body 'chunk', c.slug 'chapter', c.title, c.reference, f.format from frame f",
"join chapter c on c.id=f.chapter_id",
Expand Down

0 comments on commit f40375c

Please sign in to comment.