Ts changes weren't staged, it compiles still doesnt build building
This commit is contained in:
@@ -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]);
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user