Dispatch loadConfigAndLicense on launchApp (#3906)
Co-authored-by: Miguel Alatzar <migbot@users.noreply.github.com>
This commit is contained in:
parent
62c244cd72
commit
fd1b8ce219
1 changed files with 3 additions and 2 deletions
|
|
@ -8,7 +8,7 @@ import {Provider} from 'react-redux';
|
|||
import {loadMe} from 'mattermost-redux/actions/users';
|
||||
|
||||
import {resetToChannel, resetToSelectServer} from 'app/actions/navigation';
|
||||
import {setDeepLinkURL} from 'app/actions/views/root';
|
||||
import {setDeepLinkURL, loadConfigAndLicense} from 'app/actions/views/root';
|
||||
import {getAppCredentials} from 'app/init/credentials';
|
||||
import emmProvider from 'app/init/emm_provider';
|
||||
import 'app/init/device';
|
||||
|
|
@ -48,7 +48,8 @@ const launchApp = (credentials) => {
|
|||
]);
|
||||
|
||||
if (credentials) {
|
||||
waitForHydration(store, () => {
|
||||
waitForHydration(store, async () => {
|
||||
await store.dispatch(loadConfigAndLicense());
|
||||
store.dispatch(loadMe());
|
||||
resetToChannel({skipMetrics: true});
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue