forked from twentyhq/twenty
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix missing team member images in calendar event (twentyhq#5414)
### Work Fixed issue: twentyhq#5308 ### Before Team member images are absent from Calendar events participant chips. ![Before](https://github.com/twentyhq/twenty/assets/100703401/bd3408ad-4a07-430e-ba23-83cd0775492a) ### After <img width="383" alt="Screenshot 2024-05-14 at 10 53 24" src="https://github.com/twentyhq/twenty/assets/100703401/b65efe8a-64de-4214-a60a-ee87d235953a"> ### Fix explained Redefined recordGqlField to fech Person and WorkspaceMember --------- Co-authored-by: Charles Bochet <[email protected]>
- Loading branch information
1 parent
fde5520
commit 9bb7117
Showing
2 changed files
with
37 additions
and
2 deletions.
There are no files selected for viewing
33 changes: 33 additions & 0 deletions
33
...ctivities/calendar/graphql/operation-signatures/FindOneCalendarEventOperationSignature.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
import { CoreObjectNameSingular } from '@/object-metadata/types/CoreObjectNameSingular'; | ||
import { RecordGqlOperationSignature } from '@/object-record/graphql/types/RecordGqlOperationSignature'; | ||
|
||
export const FIND_ONE_CALENDAR_EVENT_OPERATION_SIGNATURE: RecordGqlOperationSignature = | ||
{ | ||
objectNameSingular: CoreObjectNameSingular.CalendarEvent, | ||
variables: {}, | ||
fields: { | ||
conferenceLink: true, | ||
description: true, | ||
endsAt: true, | ||
externalCreatedAt: true, | ||
id: true, | ||
isCanceled: true, | ||
isFullDay: true, | ||
location: true, | ||
startsAt: true, | ||
title: true, | ||
visibility: true, | ||
calendarEventParticipants: { | ||
id: true, | ||
person: true, | ||
workspaceMember: true, | ||
isOrganizer: true, | ||
responseStatus: true, | ||
handle: true, | ||
createdAt: true, | ||
calendarEventId: true, | ||
updatedAt: true, | ||
displayName: true, | ||
}, | ||
}, | ||
}; |
6 changes: 4 additions & 2 deletions
6
...ront/src/modules/activities/calendar/right-drawer/components/RightDrawerCalendarEvent.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters