From 778be9446d8d04c939fb2ce103343b1a74b04d77 Mon Sep 17 00:00:00 2001 From: yflory Date: Tue, 11 Feb 2020 14:30:13 +0100 Subject: [PATCH] Fix drive refreshing the UI twice at startup --- www/common/drive-ui.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/common/drive-ui.js b/www/common/drive-ui.js index ce5a76e73..736e08f92 100644 --- a/www/common/drive-ui.js +++ b/www/common/drive-ui.js @@ -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);