Skip to content

Commit 65f199a

Browse files
authored
Merge pull request #2448 from flacial/5.1/1990-dojoadmin-manage-exercises-tab
DOJO(admin): Create the page to manage flagged exercises
2 parents 3b31d38 + 7740086 commit 65f199a

File tree

1 file changed

+2
-5
lines changed
  • pages/admin/lessons/[lessonSlug]/[pageName]

1 file changed

+2
-5
lines changed

pages/admin/lessons/[lessonSlug]/[pageName]/index.tsx

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -197,11 +197,8 @@ const ExercisesPage = ({ lessonSlug }: ExercisesProps) => {
197197
.map(exercise => {
198198
return (
199199
<AdminLessonExerciseCard
200-
user={{ ...exercise.author }}
201-
exercise={{
202-
...exercise,
203-
author: { ...exercise.author }
204-
}}
200+
user={exercise.author}
201+
exercise={exercise}
205202
key={exercise.id}
206203
onRemove={() => refetch()}
207204
onUnflag={() => refetch()}

0 commit comments

Comments
 (0)