Skip to content

The open alternative to Salesforce, designed for AI.

fix: avatar disappear when editing a person (#1440)

Jérémy M732b5a5ddfeb
diff --git a/front/src/generated/graphql.tsx b/front/src/generated/graphql.tsx
index 83a8a422495..b32e7edc317 100644
--- a/front/src/generated/graphql.tsx
+++ b/front/src/generated/graphql.tsx
@@ -3232,7 +3232,7 @@ export type UpdateOnePersonMutationVariables = Exact<{
}>;
-export type UpdateOnePersonMutation = { __typename?: 'Mutation', updateOnePerson?: { __typename?: 'Person', id: string, city?: string | null, email?: string | null, jobTitle?: string | null, linkedinUrl?: string | null, xUrl?: string | null, firstName?: string | null, lastName?: string | null, displayName: string, phone?: string | null, createdAt: string, company?: { __typename?: 'Company', domainName: string, name: string, id: string } | null } | null };
+export type UpdateOnePersonMutation = { __typename?: 'Mutation', updateOnePerson?: { __typename?: 'Person', id: string, city?: string | null, avatarUrl?: string | null, email?: string | null, jobTitle?: string | null, linkedinUrl?: string | null, xUrl?: string | null, firstName?: string | null, lastName?: string | null, displayName: string, phone?: string | null, createdAt: string, company?: { __typename?: 'Company', domainName: string, name: string, id: string } | null } | null };
export type UploadPersonPictureMutationVariables = Exact<{
id: Scalars['String'];
@@ -5016,6 +5016,7 @@ export const UpdateOnePersonDocument = gql`
name
id
}
+ avatarUrl
email
jobTitle
linkedinUrl
diff --git a/front/src/modules/people/graphql/mutations/updateOnePerson.ts b/front/src/modules/people/graphql/mutations/updateOnePerson.ts
index bf3ccce16c3..4339cccf603 100644
--- a/front/src/modules/people/graphql/mutations/updateOnePerson.ts
+++ b/front/src/modules/people/graphql/mutations/updateOnePerson.ts
@@ -13,6 +13,7 @@ export const UPDATE_ONE_PERSON = gql`
name
id
}
+ avatarUrl
email
jobTitle
linkedinUrl