diff --git a/vscode/webviews/chat/cells/messageCell/assistant/SearchResults.tsx b/vscode/webviews/chat/cells/messageCell/assistant/SearchResults.tsx index e95d37f5b2f5..ab2063afaabf 100644 --- a/vscode/webviews/chat/cells/messageCell/assistant/SearchResults.tsx +++ b/vscode/webviews/chat/cells/messageCell/assistant/SearchResults.tsx @@ -2,7 +2,6 @@ import { CODE_SEARCH_PROVIDER_URI, type ChatMessageWithSearch, type NLSSearchDynamicFilter, - NLSSearchFileMatch, type NLSSearchResult, isDefined, } from '@sourcegraph/cody-shared' @@ -67,7 +66,7 @@ export const SearchResults = ({ const totalResults = useMemo( () => message.search.response?.results.results.filter( - (result): result is NLSSearchFileMatch => result.__typename === 'FileMatch' + (result): result is NLSSearchResult => result.__typename === 'FileMatch' ) || [], [message.search.response] )