diff --git a/src/components/KeyResult/Single/Drawer/Body/body.tsx b/src/components/KeyResult/Single/Drawer/Body/body.tsx index 951a3e851..52b0c4c1a 100644 --- a/src/components/KeyResult/Single/Drawer/Body/body.tsx +++ b/src/components/KeyResult/Single/Drawer/Body/body.tsx @@ -19,9 +19,9 @@ import { KeyResult } from 'src/components/KeyResult/types' import { keyResultAtomFamily } from 'src/state/recoil/key-result' import { keyResultChecklistAtom } from 'src/state/recoil/key-result/checklist' -import { KeyResultChecklistWrapper } from '../../Sections/Checklist/wrapper' import { KeyResultHistory } from '../../Sections/KeyResultHistory' import { KeyResultProgress } from '../../Sections/Progress/wrapper' +import { KeyResultTasks } from '../../Sections/Tasks' import { SCROLLBAR_ID } from './constants' import messages from './messages' @@ -120,7 +120,7 @@ const KeyResultDrawerBody = ({ )} - + diff --git a/src/components/KeyResult/Single/Sections/Checklist/ActionButtons/create-task-in-kr.tsx b/src/components/KeyResult/Single/Sections/Checklist/ActionButtons/create-task-in-kr.tsx index 797eac597..df2dcbacb 100644 --- a/src/components/KeyResult/Single/Sections/Checklist/ActionButtons/create-task-in-kr.tsx +++ b/src/components/KeyResult/Single/Sections/Checklist/ActionButtons/create-task-in-kr.tsx @@ -56,7 +56,6 @@ export const CreateTaskButton = ({ const { dispatch } = useEvent(EventType.TASK_MANAGER_CREATE_TASK_CLICK) const keyResult = useRecoilValue(keyResultAtomFamily(keyResultID)) - const hasData = Boolean(keyResult?.teamId) const handleNewCheckMark = async (title: NewTask['title']) => { if (isSubmitting) return @@ -115,7 +114,7 @@ export const CreateTaskButton = ({ /> )} - {(teamId ?? hasData) && ( + {(teamId ?? keyResult) && (