Fix type error

pull/1/head
yflory 5 years ago
parent d7ce297d0d
commit 53f72e2d9c

@ -2820,7 +2820,7 @@ define([
var getProp = function (el) {
if (folder && root[el] && manager.isSharedFolder(root[el])) {
var title = manager.getSharedFolderData(root[el]).title || el;
return title.toLowerCase();
return String(title).toLowerCase();
} else if (folder) {
return el.toLowerCase();
}

@ -1256,7 +1256,7 @@ define([
var getTitle = function (Env, id, type) {
var uo = _getUserObjectFromId(Env, id);
return uo.getTitle(id, type);
return String(uo.getTitle(id, type));
};
var isReadOnlyFile = function (Env, id) {

Loading…
Cancel
Save