diff --git a/src/MainDashBoard/components/mainDashBoardOkrTree/MainDashboardOKRTree.tsx b/src/MainDashBoard/components/mainDashBoardOkrTree/MainDashboardOKRTree.tsx index 5b1c975d..b2c9d965 100644 --- a/src/MainDashBoard/components/mainDashBoardOkrTree/MainDashboardOKRTree.tsx +++ b/src/MainDashBoard/components/mainDashBoardOkrTree/MainDashboardOKRTree.tsx @@ -37,7 +37,7 @@ const MainDashboardOKRTree = ({ onShowSideSheet, currentOkrData }: IMainDashboar }, [currentOkrData]); useEffect(() => { - setEditKrList(data?.data.tree.krList); + setEditKrList(data?.data?.tree?.krList); }, [data]); const handleAddTask = (krId: number | undefined) => {