Merge branch 'soon' of github.com:xwiki-labs/cryptpad into soon

pull/1/head
yflory 2020-02-11 15:30:47 +01:00
commit 5a2b36d443
1 changed files with 1 additions and 1 deletions

View File

@ -4564,7 +4564,7 @@ define([
onClose: cb
});
};
if (typeof (deprecated) === "object" && APP.editable) {
if (typeof (deprecated) === "object" && APP.editable && Object.keys(deprecated).length) {
Object.keys(deprecated).forEach(function (fId) {
var data = deprecated[fId];
var sfId = manager.user.userObject.getSFIdFromHref(data.href);