Fix "comment.split is not a function" in item box

This commit is contained in:
Dan Stillman 2015-05-24 04:56:19 -04:00
parent 19b8db590f
commit 8a93250ca1

View File

@ -1562,7 +1562,11 @@
}
}
Zotero.debug(comment);
// No result selected
if (!comment) {
return;
}
var [creatorID, numFields] = comment.split('-');
// If result uses two fields, save both