We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b7c201d commit 4ebd59dCopy full SHA for 4ebd59d
1 file changed
hwproj.front/src/components/Homeworks/CourseHomeworkExperimental.tsx
@@ -290,7 +290,9 @@ const CourseHomeworkEditor: FC<{
290
style={{paddingTop: 85}}
291
value={page}
292
exclusive
293
- onChange={(_, x) => setPage(x)}
+ onChange={(_, x) => {
294
+ if (x === "homework" || x === "group") setPage(x)
295
+ }}
296
>
297
<ToggleButton value="homework">
298
<AssignmentIcon color={"action"}/>
0 commit comments