delete untyped question
This commit is contained in:
parent
32c2b03a4f
commit
9fecf3eeb6
@ -22,7 +22,7 @@ import type { AnyTypedQuizQuestion } from "../../model/questionTypes/shared";
|
|||||||
import { useCurrentQuiz } from "@root/quizes/hooks";
|
import { useCurrentQuiz } from "@root/quizes/hooks";
|
||||||
import { enqueueSnackbar } from "notistack";
|
import { enqueueSnackbar } from "notistack";
|
||||||
import { useQuestionsStore } from "@root/questions/store";
|
import { useQuestionsStore } from "@root/questions/store";
|
||||||
import { updateOpenedModalSettingsId, updateRootContentId } from "@root/questions/actions";
|
import { updateOpenedModalSettingsId } from "@root/questions/actions";
|
||||||
|
|
||||||
interface Props {
|
interface Props {
|
||||||
switchState: string;
|
switchState: string;
|
||||||
@ -323,6 +323,9 @@ export default function ButtonsOptions({
|
|||||||
|
|
||||||
deleteQuestion(question.id);
|
deleteQuestion(question.id);
|
||||||
|
|
||||||
|
} else {
|
||||||
|
console.log("удаляю безтипогово");
|
||||||
|
deleteQuestion(question.id);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -361,6 +361,9 @@ export default function ButtonsOptionsAndPict({
|
|||||||
|
|
||||||
deleteQuestion(question.id);
|
deleteQuestion(question.id);
|
||||||
|
|
||||||
|
} else {
|
||||||
|
console.log("удаляю безтипогово");
|
||||||
|
deleteQuestion(question.id);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user