feat: implement AI-driven learning content generation service and interactive student dashboard
This commit is contained in:
@@ -34,7 +34,7 @@ const ContentManager = () => {
|
||||
const handleRegenerate = async (topic) => {
|
||||
setTopicState(topic.id, { loading: 'regenerating', error: null, success: null });
|
||||
try {
|
||||
await generateLearningContent(topic, true);
|
||||
await generateLearningContent(topic, true, 'all');
|
||||
setTopicState(topic.id, { loading: null, success: 'Content regenerated.' });
|
||||
refresh();
|
||||
} catch (e) {
|
||||
|
||||
Reference in New Issue
Block a user