ENCOA-260, ENCOA-259
This commit is contained in:
@@ -31,6 +31,7 @@ const ReadingSettings: React.FC = () => {
|
||||
sections,
|
||||
minTimer,
|
||||
isPrivate,
|
||||
type,
|
||||
} = useExamEditorStore(state => state.modules[currentModule]);
|
||||
|
||||
const { localSettings, updateLocalAndScheduleGlobal } = useSettingsState<ReadingSectionSettings>(
|
||||
@@ -78,10 +79,10 @@ const ReadingSettings: React.FC = () => {
|
||||
minTimer,
|
||||
module: "reading",
|
||||
id: title,
|
||||
type: "academic",
|
||||
variant: sections.length === 3 ? "full" : "partial",
|
||||
difficulty,
|
||||
private: isPrivate,
|
||||
type: type!
|
||||
};
|
||||
|
||||
axios.post(`/api/exam/reading`, exam)
|
||||
@@ -112,6 +113,7 @@ const ReadingSettings: React.FC = () => {
|
||||
variant: undefined,
|
||||
difficulty,
|
||||
private: isPrivate,
|
||||
type: type!
|
||||
} as ReadingExam);
|
||||
setExerciseIndex(0);
|
||||
setQuestionIndex(0);
|
||||
|
||||
Reference in New Issue
Block a user