Fix type error

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

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

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

Loading…
Cancel
Save