Ts changes weren't staged, it compiles still doesnt build building

This commit is contained in:
Carlos-Mesquita
2024-11-06 19:49:02 +00:00
parent a371b171bb
commit 7045b4e3c7
13 changed files with 45 additions and 29 deletions

View File

@@ -7,7 +7,7 @@ import { capitalize } from "lodash";
import { Difficulty } from "@/interfaces/exam";
import { useCallback, useEffect, useState } from "react";
import { toast } from "react-toastify";
import { ModuleState } from "@/stores/examEditor/types";
import { ModuleState, SectionState } from "@/stores/examEditor/types";
import { Module } from "@/interfaces";
import useExamEditorStore from "@/stores/examEditor";
import WritingSettings from "./SettingsEditor/writing";
@@ -38,8 +38,8 @@ const ExamEditor: React.FC = () => {
useEffect(() => {
const currentSections = sections;
const currentLabels = sectionLabels;
let updatedSections;
let updatedLabels;
let updatedSections: SectionState[];
let updatedLabels: any;
if (numberOfParts > currentSections.length) {
const newSections = [...currentSections];
@@ -76,6 +76,7 @@ const ExamEditor: React.FC = () => {
}
}
});
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [numberOfParts]);