|
|
@@ -32,13 +32,13 @@ export const useRefreshProfile = () => {
|
|
|
id: accessId,
|
|
|
switchId: switchId
|
|
|
})
|
|
|
- console.log('toto!')
|
|
|
+
|
|
|
const profile = await fetchProfile(accessId)
|
|
|
- console.log(profile)
|
|
|
+
|
|
|
// Sans le flush, on observe un bug non-expliqué au rechargement de la page en mode dev : la fonction save
|
|
|
// du repo de MyProfile ne fonctionne pas quand le plugin init.server.ts re-fetch le profil
|
|
|
em.flush(MyProfile)
|
|
|
- console.log('tototo!')
|
|
|
+
|
|
|
accessProfileStore.initiateProfile(profile)
|
|
|
organizationProfileStore.initiateProfile(profile.organization)
|
|
|
}
|