Leftovers from the previous commit

This commit is contained in:
Carlos-Mesquita
2024-11-10 06:19:19 +00:00
parent 322d7905c3
commit 4219341951
9 changed files with 26 additions and 11 deletions

View File

@@ -42,8 +42,6 @@ export function generate(
const url = `/api/exam/generate/${module}/${sectionId}${queryString ? `?${queryString}` : ''}`;
console.log(config.body);
const request = config.method === 'POST'
? axios.post(url, config.body)
: axios.get(url);

View File

@@ -15,7 +15,7 @@ interface Props {
const GenerateBtn: React.FC<Props> = ({module, sectionId, genType, generateFnc, className}) => {
const section = useExamEditorStore((store) => store.modules[module].sections.find((s)=> s.sectionId == sectionId));
if (section === undefined) return;
if (section === undefined) return <></>;
const {generating} = section;

View File

@@ -42,7 +42,7 @@ const LevelSettings: React.FC = () => {
);
const section = sections.find((section) => section.sectionId == focusedSection);
if (section === undefined) return;
if (section === undefined) return <></>;
const currentSection = section.state as LevelPart;