Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
hkirat committed Apr 1, 2024
1 parent 6f76ffe commit 02773ba
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/app/courses/[...courseId]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -81,11 +81,14 @@ function findContentById(
return null;
} else if (remainingIds.length === 0) {
if (foundContent.type === 'folder') {
// TODO: Fix these
// @ts-ignore
return foundContent.children;
}

return [foundContent];
}
// @ts-ignore
return findContentById(foundContent.children || [], remainingIds);
}

Expand Down

0 comments on commit 02773ba

Please sign in to comment.