Skip to content

Commit

Permalink
Fixed Event Target Error
Browse files Browse the repository at this point in the history
  • Loading branch information
Shanks0465 committed Sep 3, 2024
1 parent c79aee7 commit c1133cd
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions frontend/src/app/publications/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,9 @@ const Publications = () => {
minWidth={"max-content"}
p={2}
value={area}
onClick={(event) => setFilterArea(event.target.value)}
onClick={(event) =>
setFilterArea((event.target as HTMLInputElement).value)
}
colorScheme="orange"
key={area}
>
Expand All @@ -163,7 +165,9 @@ const Publications = () => {
minWidth={"max-content"}
p={2}
value={conference}
onClick={(event) => setFilterConference(event.target.value)}
onClick={(event) =>
setFilterConference((event.target as HTMLInputElement).value)
}
colorScheme="orange"
key={conference}
>
Expand All @@ -181,7 +185,9 @@ const Publications = () => {
minWidth={"max-content"}
p={2}
value={year}
onClick={(event) => setFilterYear(event.target.value)}
onClick={(event) =>
setFilterYear((event.target as HTMLInputElement).value)
}
colorScheme="orange"
key={year}
>
Expand Down

0 comments on commit c1133cd

Please sign in to comment.