diff --git a/src/components/DrawPDFFields/index.tsx b/src/components/DrawPDFFields/index.tsx index b5211f9..20e14f8 100644 --- a/src/components/DrawPDFFields/index.tsx +++ b/src/components/DrawPDFFields/index.tsx @@ -153,7 +153,7 @@ export const DrawPDFFields = (props: Props) => { return !!pdfFiles.filter(pdfFile => !!pdfFile.expanded).length } - const handleAccordionExpandChange = (event: React.SyntheticEvent, expanded: boolean, pdfFile: PdfFile) => { + const handleAccordionExpandChange = (expanded: boolean, pdfFile: PdfFile) => { pdfFile.expanded = expanded setPdfFiles(pdfFiles) @@ -189,7 +189,7 @@ export const DrawPDFFields = (props: Props) => { {pdfFiles.map((pdfFile) => { return ( - {handleAccordionExpandChange(event, expanded, pdfFile)}}> + {handleAccordionExpandChange(expanded, pdfFile)}}> } aria-controls="panel1-content"