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> <LeftSidebarSection>
<SidebarTitle>TASK GROUP</SidebarTitle> <SidebarTitle>TASK GROUP</SidebarTitle>
<SidebarButton> <SidebarButton>
<SidebarButtonText>Release 0.1.0</SidebarButtonText> <SidebarButtonText>{task.taskGroup.name}</SidebarButtonText>
</SidebarButton> </SidebarButton>
<DueDateTitle>DUE DATE</DueDateTitle> <DueDateTitle>DUE DATE</DueDateTitle>
<SidebarButton <SidebarButton

View File

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

View File

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