minor bugfix...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2015-12-16 04:07:29 +03:00
parent 03e857dd80
commit 22563a90ff

View File

@ -588,6 +588,7 @@ var prepareIndex =
module.prepareIndex =
function(json, changes){
changes = changes === false ? false
// nothing set then save all...
: changes == null ? true
: changes
@ -602,7 +603,7 @@ function(json, changes){
}
// tags...
if(changes === true || changes && json.data.tags != null){
if((changes === true || changes) && json.data.tags != null){
// NOTE: we write the whole set ONLY if an item is true or undefined
// i.e. not false...
if(changes === true || changes.bookmarked){