From e76ea9da6325c61e5d9c8e91f37dbb1d9489f7e0 Mon Sep 17 00:00:00 2001 From: Jordan Knott Date: Fri, 11 Sep 2020 14:34:57 -0500 Subject: [PATCH] fix: show correct task group in task details --- frontend/src/shared/components/TaskDetails/index.tsx | 2 +- frontend/src/shared/generated/graphql.tsx | 3 ++- frontend/src/shared/graphql/findTask.graphqls | 1 + 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/frontend/src/shared/components/TaskDetails/index.tsx b/frontend/src/shared/components/TaskDetails/index.tsx index 02103c8..d2e0219 100644 --- a/frontend/src/shared/components/TaskDetails/index.tsx +++ b/frontend/src/shared/components/TaskDetails/index.tsx @@ -169,7 +169,7 @@ const TaskDetails: React.FC = ({ TASK GROUP - Release 0.1.0 + {task.taskGroup.name} DUE DATE & { taskGroup: ( { __typename?: 'TaskGroup' } - & Pick + & Pick ), badges: ( { __typename?: 'TaskBadges' } & { checklist?: Maybe<( @@ -2702,6 +2702,7 @@ export const FindTaskDocument = gql` complete taskGroup { id + name } badges { checklist { diff --git a/frontend/src/shared/graphql/findTask.graphqls b/frontend/src/shared/graphql/findTask.graphqls index 019dea0..2e0efc5 100644 --- a/frontend/src/shared/graphql/findTask.graphqls +++ b/frontend/src/shared/graphql/findTask.graphqls @@ -8,6 +8,7 @@ query findTask($taskID: UUID!) { complete taskGroup { id + name } badges { checklist {