From 1e3ff3dae4d0f025ce93a8a684bf7c4a6a79b1eb Mon Sep 17 00:00:00 2001 From: yflory Date: Wed, 21 Apr 2021 17:26:59 +0200 Subject: [PATCH] Fix type error --- www/common/proxy-manager.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/www/common/proxy-manager.js b/www/common/proxy-manager.js index 011ec4f36..e922f1067 100644 --- a/www/common/proxy-manager.js +++ b/www/common/proxy-manager.js @@ -239,6 +239,9 @@ define([ if (!Env.folders[id]) { return {}; } var obj = Env.folders[id].proxy.metadata || {}; for (var k in Env.user.proxy[UserObject.SHARED_FOLDERS][id] || {}) { + if (typeof(Env.user.proxy[UserObject.SHARED_FOLDERS][id][k]) === "undefined") { + continue; + } var data = Util.clone(Env.user.proxy[UserObject.SHARED_FOLDERS][id][k]); if (k === "href" && data.indexOf('#') === -1) { try {