diff --git a/src/stores/questions/actions.ts b/src/stores/questions/actions.ts index 7ea2be18..4b287057 100644 --- a/src/stores/questions/actions.ts +++ b/src/stores/questions/actions.ts @@ -206,8 +206,10 @@ export const updateQuestion = ( //Если мы делаем листочек веточкой - удаляем созданный к нему результ const questionResult = useQuestionsStore.getState().questions.find(questionResult => questionResult.type === "result" && questionResult.content.rule.parentId === q.content.id); if (questionResult && q.content.rule.default.length !== 0) deleteQuestion(questionResult.quizId); - deleteQuestion; - setQuestionBackendId(questionId, response.updated); + + if (q.backendId !== response.updated) { + console.warn(`Question backend id has changed from ${q.backendId} to ${response.updated}`); + } } catch (error) { if (isAxiosCanceledError(error)) return;