delete untyped question

This commit is contained in:
Nastya 2023-12-12 23:31:11 +03:00
parent 32c2b03a4f
commit 9fecf3eeb6
2 changed files with 7 additions and 1 deletions

@ -22,7 +22,7 @@ import type { AnyTypedQuizQuestion } from "../../model/questionTypes/shared";
import { useCurrentQuiz } from "@root/quizes/hooks";
import { enqueueSnackbar } from "notistack";
import { useQuestionsStore } from "@root/questions/store";
import { updateOpenedModalSettingsId, updateRootContentId } from "@root/questions/actions";
import { updateOpenedModalSettingsId } from "@root/questions/actions";
interface Props {
switchState: string;
@ -323,6 +323,9 @@ export default function ButtonsOptions({
deleteQuestion(question.id);
} else {
console.log("удаляю безтипогово");
deleteQuestion(question.id);
}
};

@ -361,6 +361,9 @@ export default function ButtonsOptionsAndPict({
deleteQuestion(question.id);
} else {
console.log("удаляю безтипогово");
deleteQuestion(question.id);
}
};