Skip to content

Commit 91c7c02

Browse files
authored
fix(discussions): fetch labels (#2134)
fix: discussion labels Signed-off-by: Adam Setch <[email protected]>
1 parent ad5bff6 commit 91c7c02

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/renderer/utils/api/client.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,7 @@ export async function searchDiscussions(
250250
firstDiscussions: 1,
251251
lastComments: 1,
252252
lastReplies: 1,
253+
firstLabels: 100,
253254
includeIsAnswered: isAnsweredDiscussionFeatureSupported(
254255
notification.account,
255256
),

src/renderer/utils/api/graphql/discussions.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ export const QUERY_SEARCH_DISCUSSIONS = gql`
2727
$firstDiscussions: Int
2828
$lastComments: Int
2929
$lastReplies: Int
30+
$firstLabels: Int
3031
$includeIsAnswered: Boolean!
3132
) {
3233
search(query: $queryStatement, type: DISCUSSION, first: $firstDiscussions) {
@@ -51,7 +52,7 @@ export const QUERY_SEARCH_DISCUSSIONS = gql`
5152
}
5253
}
5354
}
54-
labels {
55+
labels(first: $firstLabels) {
5556
nodes {
5657
name
5758
}

0 commit comments

Comments
 (0)