People.Client: Profile: changed order of requests after changing language

This commit is contained in:
Daniil Senkiv 2020-01-28 14:08:27 +03:00
parent 6e0fe3023e
commit c969609db9

View File

@ -130,10 +130,8 @@ class ProfileInfo extends React.PureComponent {
if (profile.cultureName === language.key) return;
updateProfileCulture(profile.id, language.key)
.then(() => {
getCurrentCustomSchema(store.dispatch, nameSchemaId);
getModules(store.dispatch);
})
.then(() => getModules(store.dispatch))
.then(() => getCurrentCustomSchema(store.dispatch, nameSchemaId));
}
getLanguages = () => {