diff --git a/front/lib/api/user.ts b/front/lib/api/user.ts index e6a28ecfa9f0..e08ee079c000 100644 --- a/front/lib/api/user.ts +++ b/front/lib/api/user.ts @@ -140,9 +140,9 @@ export async function fetchRevokedWorkspace( return new Ok(workspace); } -export async function getUserWithWorkspaces( +export async function getUserWithWorkspaces( user: UserResource, - populateExtensionConfig: T + populateExtensionConfig: T = false as T ): Promise< T extends true ? UserTypeWithExtensionWorkspaces : UserTypeWithWorkspaces > {