From fa1e7b13a10a990431614459ef93008a8c48c861 Mon Sep 17 00:00:00 2001 From: yangdx Date: Wed, 12 Mar 2025 22:43:01 +0800 Subject: [PATCH] Fix linting --- lightrag_webui/src/components/graph/GraphSearch.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lightrag_webui/src/components/graph/GraphSearch.tsx b/lightrag_webui/src/components/graph/GraphSearch.tsx index bbb8cb5b..943b932d 100644 --- a/lightrag_webui/src/components/graph/GraphSearch.tsx +++ b/lightrag_webui/src/components/graph/GraphSearch.tsx @@ -86,7 +86,7 @@ export const GraphSearchInput = ({ async (query?: string): Promise => { if (onFocus) onFocus(null) if (!query || !searchEngine) return [] - const result: OptionItem[] = searchEngine.search(query).map((r) => ({ + const result: OptionItem[] = searchEngine.search(query).map((r: { id: string }) => ({ id: r.id, type: 'nodes' })) @@ -103,7 +103,7 @@ export const GraphSearchInput = ({ } ] }, - [searchEngine, onFocus] + [searchEngine, onFocus, t] ) return (