Skip to content
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/api/task/get-task-detail.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ export const fetchTaskDetail = async (
}
);

if (!response) return notFound();
if (!response.ok) notFound();

return response.json();
} catch (error) {
console.error(error);
throw error;
}
};

Expand All @@ -46,6 +46,6 @@ export const getTaskDetail = async (

return response.data;
} catch (error) {
console.error(error);
throw error;
}
};
5 changes: 0 additions & 5 deletions src/app/[groupId]/tasklist/@task/_components/task-detail.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import TaskDetailContents from "../_components/task-detail-contents";
import { Icon } from "@/components";
import TaskDetailWrapper from "../_components/task-detail-wrapper";
import {
notFound,
useParams,
usePathname,
useRouter,
Expand Down Expand Up @@ -61,10 +60,6 @@ const TaskDetail = () => {
taskId
);

if (taskId) {
if (!taskDetailData) notFound();
}

return (
<AnimatePresence mode="wait">
{taskId ? (
Expand Down