fix: show correct task group in task details

This commit is contained in:
Jordan Knott 2020-09-11 14:34:57 -05:00
parent 923d7f7372
commit e76ea9da63
3 changed files with 4 additions and 2 deletions

View File

@ -169,7 +169,7 @@ const TaskDetails: React.FC<TaskDetailsProps> = ({
<LeftSidebarSection>
<SidebarTitle>TASK GROUP</SidebarTitle>
<SidebarButton>
<SidebarButtonText>Release 0.1.0</SidebarButtonText>
<SidebarButtonText>{task.taskGroup.name}</SidebarButtonText>
</SidebarButton>
<DueDateTitle>DUE DATE</DueDateTitle>
<SidebarButton

View File

@ -1264,7 +1264,7 @@ export type FindTaskQuery = (
& Pick<Task, 'id' | 'name' | 'description' | 'dueDate' | 'position' | 'complete'>
& { taskGroup: (
{ __typename?: 'TaskGroup' }
& Pick<TaskGroup, 'id'>
& Pick<TaskGroup, 'id' | 'name'>
), badges: (
{ __typename?: 'TaskBadges' }
& { checklist?: Maybe<(
@ -2702,6 +2702,7 @@ export const FindTaskDocument = gql`
complete
taskGroup {
id
name
}
badges {
checklist {

View File

@ -8,6 +8,7 @@ query findTask($taskID: UUID!) {
complete
taskGroup {
id
name
}
badges {
checklist {