Skip to content

Commit

Permalink
Fix 'undefined' in UI
Browse files Browse the repository at this point in the history
  • Loading branch information
jlegewie committed Oct 13, 2018
1 parent f663a5c commit 19480fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chrome/content/zotfile/ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ Zotero.ZotFile.UI = new function() {
var getCollectionPathsOfItem = function(item) {
var getCollectionPath = function(collectionID) {
var collection = Zotero.Collections.get(collectionID);
if (collection.parent == null) return collection.name
if (collection.parent === false) return collection.name

return OS.Path.normalize(getCollectionPath(collection.parentID) + Zotero.ZotFile.folderSep + collection.name);
};
Expand Down

0 comments on commit 19480fc

Please sign in to comment.