From f01c04bb24db3a645817a14055d3fb8ea4a2755a Mon Sep 17 00:00:00 2001 From: shatanikmahanty Date: Mon, 7 Oct 2024 21:14:13 +0530 Subject: [PATCH] Fix: Add type to parameter in handlePostDocumentSelect callback --- frontend/src/Navigation.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/Navigation.tsx b/frontend/src/Navigation.tsx index 48bb73bd..0d99fd75 100644 --- a/frontend/src/Navigation.tsx +++ b/frontend/src/Navigation.tsx @@ -304,7 +304,7 @@ export default function Navigation({ navOpen, setNavOpen }: NavigationProps) { isDocsListOpen={isDocsListOpen} setIsDocsListOpen={setIsDocsListOpen} handleDeleteClick={handleDeleteClick} - handlePostDocumentSelect={(doc) => { + handlePostDocumentSelect={(option?: string) => { if (isMobile) { setNavOpen(!navOpen) }