Fix focus on hometab

Remove the 'returnPromise' option, i.e. always return Promise
so that the focus is executed after the sections are loaded.
This commit is contained in:
Dmitry Lyzo 2022-02-10 11:57:04 +03:00
parent 7127acb021
commit 6c61712514

View file

@ -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) {