mirror of
https://github.com/AustinKelsay/plebdevs.git
synced 2025-04-19 19:01:19 +00:00
Add log for invalid lesson event
This commit is contained in:
parent
ea6299a3c2
commit
5292e4789f
@ -157,6 +157,7 @@ export default function DraftCourseDetails({ processedEvent, draftId, lessons })
|
||||
if (lesson.unpublished) {
|
||||
const validationResult = validateEvent(lesson.unpublished);
|
||||
if (validationResult !== true) {
|
||||
console.log('invalid lesson:', lesson.unpublished);
|
||||
console.error('Invalid event:', validationResult);
|
||||
showToast('error', 'Error', `Invalid event: ${validationResult}`);
|
||||
return;
|
||||
|
Loading…
x
Reference in New Issue
Block a user