From 6c6171251433b60713e6377a04b950987ee2232d Mon Sep 17 00:00:00 2001 From: Dmitry Lyzo Date: Thu, 10 Feb 2022 11:57:04 +0300 Subject: [PATCH] Fix focus on hometab Remove the 'returnPromise' option, i.e. always return Promise so that the focus is executed after the sections are loaded. --- src/components/homesections/homesections.js | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/components/homesections/homesections.js b/src/components/homesections/homesections.js index 94f0e2d3aa..6cda229af5 100644 --- a/src/components/homesections/homesections.js +++ b/src/components/homesections/homesections.js @@ -73,8 +73,7 @@ import ServerConnections from '../ServerConnections'; return Promise.all(promises).then(function () { return resume(elem, { - refresh: true, - returnPromise: false + refresh: true }); }); } else { @@ -127,10 +126,7 @@ import ServerConnections from '../ServerConnections'; promises.push(elems[i].resume(options)); } - const promise = Promise.all(promises); - if (!options || options.returnPromise !== false) { - return promise; - } + return Promise.all(promises); } function loadSection(page, apiClient, user, userSettings, userViews, allSections, index) {