fix config widget
This commit is contained in:
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);
|
||||
|
Loading…
Reference in New Issue
Block a user