Skip to content

Commit 4ebd59d

Browse files
committed
wip
1 parent b7c201d commit 4ebd59d

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

hwproj.front/src/components/Homeworks/CourseHomeworkExperimental.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,9 @@ const CourseHomeworkEditor: FC<{
290290
style={{paddingTop: 85}}
291291
value={page}
292292
exclusive
293-
onChange={(_, x) => setPage(x)}
293+
onChange={(_, x) => {
294+
if (x === "homework" || x === "group") setPage(x)
295+
}}
294296
>
295297
<ToggleButton value="homework">
296298
<AssignmentIcon color={"action"}/>

0 commit comments

Comments
 (0)