diff --git a/src/modules/admin/pages/library/units/AddLibraryUnit.jsx b/src/modules/admin/pages/library/units/AddLibraryUnit.jsx
index 5dd66c0..776c74d 100644
--- a/src/modules/admin/pages/library/units/AddLibraryUnit.jsx
+++ b/src/modules/admin/pages/library/units/AddLibraryUnit.jsx
@@ -48,7 +48,6 @@ const lessonSchema = z.object({
z.object({ value: z.string().min(1, "Objective cannot be empty.") })
).optional(),
blocks: z.array(z.any()).optional(),
- requirements: z.array(z.any()).optional(),
});
const schema = z.object({
@@ -198,7 +197,7 @@ function StepLessons({ control, register, errors }) {
type="button"
variant="outline"
className="w-full"
- onClick={() => append({ title: "", description: "", objectives: [], blocks: [], requirements: [] })}
+ onClick={() => append({ title: "", description: "", objectives: [], blocks: [] })}
>
Add Lesson
@@ -243,9 +242,6 @@ function StepPageBuilder({ control, setValue }) {
return next;
});
- const requirements = activeLesson?.requirements ?? [];
- const setRequirements = (next) => setValue(`lessons.${activeIndex}.requirements`, next, { shouldDirty: true });
-
return (
{lessons.map((l, i) => (
@@ -254,7 +250,6 @@ function StepPageBuilder({ control, setValue }) {
{l.title || `Lesson ${i + 1}`}
{(l.blocks?.length ?? 0)} block{(l.blocks?.length ?? 0) !== 1 ? "s" : ""}
- {(l.requirements?.length ?? 0) > 0 && ` · ${l.requirements.length} requirement${l.requirements.length !== 1 ? "s" : ""}`}