Skip to content

Commit e4b85ab

Browse files
committed
StudentSolutionsPage: показывать по умолчанию последнюю задачу в группе задач
1 parent 3d92467 commit e4b85ab

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

hwproj.front/src/components/Solutions/StudentSolutionsPage.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -343,6 +343,7 @@ const StudentSolutionsPage: FC = () => {
343343
{currentHomeworksGroup && taskIndexInHomework !== -1 && currentHomeworksGroup.statsForHomeworks!.length > 1 &&
344344
<Tabs
345345
onChange={(_, value) => navigate(`/task/${currentHomeworksGroup!.statsForHomeworks![value].statsForTasks![taskIndexInHomework]!.taskId!}/${currentStudentId}`)}
346+
defaultValue={currentHomeworksGroup!.statsForHomeworks!.length - 1}
346347
variant="scrollable"
347348
scrollButtons={"auto"}
348349
value={versionOfTask}

0 commit comments

Comments
 (0)