Fix 'title is null' error
Not sure why item.title would ever be null, but this was in a user's error report and seemed to be causing a restart error.
This commit is contained in:
parent
1c8607d661
commit
475bd17b71
1 changed files with 1 additions and 1 deletions
|
@ -1455,7 +1455,7 @@ Zotero.Items = function() {
|
||||||
|
|
||||||
|
|
||||||
this.getSortTitle = function(title) {
|
this.getSortTitle = function(title) {
|
||||||
if (title === false || title === undefined) {
|
if (title === false || title === undefined || title == null) {
|
||||||
return '';
|
return '';
|
||||||
}
|
}
|
||||||
if (typeof title == 'number') {
|
if (typeof title == 'number') {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue