fix config widget
Some checks failed
Deploy / DeployService (push) Successful in 24s
Deploy / CreateImage (push) Has been cancelled

This commit is contained in:
Nastya 2025-07-25 14:37:50 +03:00
parent 32e5853ee8
commit 106d8b6ad7

@ -80,7 +80,13 @@ export function useQuizData(quizId: string, preview: boolean = false) {
console.log(data);
addQuestions(data.questions);
changeNextLoading(false);
return data;
// Возвращаем полную структуру данных с настройками из store
const currentState = useQuizStore.getState();
return {
...currentState,
questions: [...currentState.questions, ...data.questions],
};
} catch (p) {
console.log(p);
setPage(questions.length);