Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions src/utils/graphql-issues-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -881,10 +881,12 @@ export class GraphQLIssuesService {
id: comment.id,
body: comment.body,
embeds: extractEmbeds(comment.body),
user: {
id: comment.user.id,
name: comment.user.name,
},
user: comment.user
? {
id: comment.user.id,
name: comment.user.name,
}
: undefined,
createdAt: comment.createdAt instanceof Date
? comment.createdAt.toISOString()
: (comment.createdAt
Expand Down
2 changes: 1 addition & 1 deletion src/utils/linear-types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ export interface CreateCommentArgs {
export interface LinearComment {
id: string;
body: string;
user: {
user?: {
id: string;
name: string;
};
Expand Down