mirror of
https://github.com/directus/directus.git
synced 2026-01-30 06:58:09 -05:00
Correctly await setLanguage when hydrating the app
This commit is contained in:
@@ -57,7 +57,7 @@ export async function hydrate(stores = useStores()) {
|
||||
*/
|
||||
await userStore.hydrate();
|
||||
|
||||
setLanguage((userStore.state.currentUser?.language as Language) || 'en-US');
|
||||
await setLanguage((userStore.state.currentUser?.language as Language) || 'en-US');
|
||||
|
||||
await Promise.all(stores.filter(({ id }) => id !== 'userStore').map((store) => store.hydrate?.()));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user