Skip to content

Commit

Permalink
fix menu bug
Browse files Browse the repository at this point in the history
  • Loading branch information
gustavomm19 committed Sep 20, 2024
1 parent 06a182b commit bb3bb9d
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ function SyllabusContent() {
? section.filteredModulesByPending
: section.filteredModules));

const currentModuleIndex = filteredCurrentAssignments.findIndex((s) => s?.some((l) => l.slug === lessonSlug));
const currentModuleIndex = filteredCurrentAssignments.findIndex((s) => s?.some((l) => l.slug === lessonSlug || l.translations?.[language]?.slug === lessonSlug || l.translations?.[language]?.slug === currentAsset?.slug));

const currentModule = sortedAssignments[currentModuleIndex];

Expand Down Expand Up @@ -306,8 +306,6 @@ function SyllabusContent() {
// Binary base64 decoding ⇢ UTF-8
const markdown = getMarkDownContent(markdownData);
setReadme(markdown);
console.log('currData');
console.log(currData);
setCurrentAsset(currData);
}
})
Expand Down

0 comments on commit bb3bb9d

Please sign in to comment.