Update src/components/content/courses/CourseLesson.js

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
This commit is contained in:
Austin Kelsay 2025-03-31 09:41:05 -05:00 committed by GitHub
parent ed41f9a170
commit 080ab4a4b5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -89,17 +89,6 @@ const CourseLesson = ({ lesson, course, decryptionPerformed, isPaid, setComplete
];
// Add additional links to menu items if they exist
if (lesson?.additionalLinks && lesson.additionalLinks.length > 0) {
lesson.additionalLinks.forEach((link, index) => {
menuItems.push({
label: `Link: ${new URL(link).hostname}`,
icon: 'pi pi-external-link',
command: () => {
window.open(link, '_blank');
}
});
});
}
useEffect(() => {
if (!zaps || zapsLoading || zapsError) return;