Skip to content

Commit

Permalink
Resolve type error
Browse files Browse the repository at this point in the history
  • Loading branch information
itnoj15 committed Feb 21, 2024
1 parent a5ddfe0 commit bc0b8ba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/courses/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export default function Page() {
<SectionGroup>
{groupEditions(editions).map((editionGroup, i) => (
<SectionEditions key={i}>
{editionGroup.map((edition, i) => (
{editionGroup.map((edition: any, i: any) => (
<SectionEdition key={i} href={edition.url}>{edition.semester}</SectionEdition>
))}
</SectionEditions>
Expand Down Expand Up @@ -88,7 +88,7 @@ const HorizontalLine = styled.hr`
width: 100%;
`

function groupEditions(editions) {
function groupEditions(editions: any) {
const groupedEditions = [];
for (let i = 0; i < editions.length; i += 3) {
groupedEditions.push(editions.slice(i, i + 3));
Expand Down

0 comments on commit bc0b8ba

Please sign in to comment.