From c1133cdbcc5e4045fc9f4bec34a30f84b5a3748a Mon Sep 17 00:00:00 2001 From: Shanks0465 Date: Tue, 3 Sep 2024 20:13:58 +0530 Subject: [PATCH] Fixed Event Target Error --- frontend/src/app/publications/page.tsx | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/frontend/src/app/publications/page.tsx b/frontend/src/app/publications/page.tsx index 242ace8..974e3ae 100644 --- a/frontend/src/app/publications/page.tsx +++ b/frontend/src/app/publications/page.tsx @@ -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} > @@ -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} > @@ -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} >