From 732b5a5ddfebf6c802e2f14935b0d46f94fd965c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20M?= Date: Tue, 5 Sep 2023 09:52:06 +0200 Subject: [PATCH] fix: avatar disappear when editing a person (#1440) --- front/src/generated/graphql.tsx | 3 ++- front/src/modules/people/graphql/mutations/updateOnePerson.ts | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/front/src/generated/graphql.tsx b/front/src/generated/graphql.tsx index 83a8a4224..b32e7edc3 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 bf3ccce16..4339cccf6 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