diff --git a/www/common/userObject.js b/www/common/userObject.js index be770232b..eed9fc19c 100644 --- a/www/common/userObject.js +++ b/www/common/userObject.js @@ -109,7 +109,9 @@ define([ }; exp.isFolderEmpty = function (element) { if (!isFolder(element)) { return false; } - return Object.keys(element).length === 0; + if (Object.keys(element).length === 0) { return true; } + if (Object.keys(element).length === 1 && isFolderData(element[Object.keys(element)[0]])) { return true; } + return false; }; exp.hasSubfolder = function (element, trashRoot) {