Close
diff --git a/app/_components/subject-page.tsx b/app/_components/subject-page.tsx
index 1c6f82be..1c139224 100644
--- a/app/_components/subject-page.tsx
+++ b/app/_components/subject-page.tsx
@@ -42,14 +42,13 @@ const SubjectPage = async ({
}: SubjectPageProps) => {
const f = formatEventFilters({ from, limit, to });
- const [{ data: subject }, { data: events, error }, user] = await Promise.all([
+ const [{ data: subject }, { data: events }, user] = await Promise.all([
isPublic ? getPublicSubject(subjectId) : getSubject(subjectId),
isPublic
? await listPublicEvents(subjectId, f)
: await listEvents(subjectId, f),
getCurrentUser(),
]);
- console.log(error);
if (!subject) return null;
const isTeamMember = !!user && subject.team_id === user.id;
diff --git a/app/_components/template-form.tsx b/app/_components/template-form.tsx
index edf5d0ef..87d469e8 100644
--- a/app/_components/template-form.tsx
+++ b/app/_components/template-form.tsx
@@ -132,7 +132,7 @@ const TemplateForm = ({
)}
/>
{form.formState.errors.root && (
-
+
{form.formState.errors.root.message}
)}
diff --git a/app/_components/training-plan-form.tsx b/app/_components/training-plan-form.tsx
index 7aee1286..270416a3 100644
--- a/app/_components/training-plan-form.tsx
+++ b/app/_components/training-plan-form.tsx
@@ -29,6 +29,7 @@ const TrainingPlanForm = ({ mission, subjectId }: TrainingPlanFormProps) => {
return (