From 53f72e2d9caa98dfebe6eb255256f36959492c61 Mon Sep 17 00:00:00 2001 From: yflory Date: Tue, 5 May 2020 12:14:26 +0200 Subject: [PATCH] Fix type error --- www/common/drive-ui.js | 2 +- www/common/proxy-manager.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/www/common/drive-ui.js b/www/common/drive-ui.js index 36aa241e5..57e40ffdb 100644 --- a/www/common/drive-ui.js +++ b/www/common/drive-ui.js @@ -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(); } diff --git a/www/common/proxy-manager.js b/www/common/proxy-manager.js index e1cb4c11e..e272070a4 100644 --- a/www/common/proxy-manager.js +++ b/www/common/proxy-manager.js @@ -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) {