user might have been removed

This commit is contained in:
j 2016-04-06 11:21:51 +02:00
parent 720076d5d1
commit 9d01cbf57e

View file

@ -330,6 +330,7 @@ oml.ui.folders = function() {
library = lists.filter(function(list) {
return list.user == name && list.type == 'library';
});
if (oml.$ui.libraryList[index]) {
oml.$ui.libraryList[index].options({
items: library
});
@ -340,6 +341,7 @@ oml.ui.folders = function() {
})
.css({height: items.length * 16 + 'px'})
.size();
}
oml.resizeListFolders();
callback && callback();
});