mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-25 15:55:48 +00:00
chore: remove unnecessary code
This commit is contained in:
+3
-5
@@ -17,7 +17,7 @@ import {
|
||||
DialogFooter,
|
||||
} from '@/figma-make/components/base/dialog';
|
||||
import { toast } from 'sonner';
|
||||
import { useRouter, useSearchParams } from 'next/navigation';
|
||||
import { notFound, useRouter, useSearchParams } from 'next/navigation';
|
||||
import { DailyChecklistApi } from '@/services/api/daily-checklist/daily-checklist';
|
||||
import { isResponseError } from '@/lib/api-helper';
|
||||
import Link from 'next/link';
|
||||
@@ -140,6 +140,8 @@ export function DetailDailyChecklistContent() {
|
||||
useEffect(() => {
|
||||
if (checklistId) {
|
||||
fetchChecklistDetail();
|
||||
} else {
|
||||
router.push('/404');
|
||||
}
|
||||
}, [checklistId]);
|
||||
|
||||
@@ -802,10 +804,6 @@ export function DetailDailyChecklistContent() {
|
||||
? 'pl-12'
|
||||
: 'pl-8';
|
||||
|
||||
console.log({
|
||||
activity,
|
||||
});
|
||||
|
||||
rows.push(
|
||||
<tr
|
||||
key={`activity-${activity.id}-${index}`}
|
||||
|
||||
Reference in New Issue
Block a user