Fix type error

pull/1/head
yflory 4 years ago
parent 12718d4bde
commit 1e3ff3dae4

@ -239,6 +239,9 @@ define([
if (!Env.folders[id]) { return {}; } if (!Env.folders[id]) { return {}; }
var obj = Env.folders[id].proxy.metadata || {}; var obj = Env.folders[id].proxy.metadata || {};
for (var k in Env.user.proxy[UserObject.SHARED_FOLDERS][id] || {}) { 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]); var data = Util.clone(Env.user.proxy[UserObject.SHARED_FOLDERS][id][k]);
if (k === "href" && data.indexOf('#') === -1) { if (k === "href" && data.indexOf('#') === -1) {
try { try {

Loading…
Cancel
Save