diff --git a/src/components/search/LiveTVSearchResults.tsx b/src/components/search/LiveTVSearchResults.tsx index f449a59fad..9f9874db26 100644 --- a/src/components/search/LiveTVSearchResults.tsx +++ b/src/components/search/LiveTVSearchResults.tsx @@ -72,8 +72,7 @@ const LiveTVSearchResults: FunctionComponent = ({ serv setChannels([]); if (query && collectionType === 'livetv') { - // TODO: Remove type casting once we're using a properly typed API client - const apiClient = (ServerConnections as any).getApiClient(serverId); + const apiClient = ServerConnections.getApiClient(serverId); // Movies row fetchItems(apiClient, { diff --git a/src/components/search/SearchResults.tsx b/src/components/search/SearchResults.tsx index 0b3d8213f7..e814eba7fa 100644 --- a/src/components/search/SearchResults.tsx +++ b/src/components/search/SearchResults.tsx @@ -99,8 +99,7 @@ const SearchResults: FunctionComponent = ({ serverId, parent setPeople([]); if (query) { - // TODO: Remove type casting once we're using a properly typed API client - const apiClient = (ServerConnections as any).getApiClient(serverId); + const apiClient = ServerConnections.getApiClient(serverId); // Movie libraries if (!collectionType || isMovies()) { diff --git a/src/components/search/SearchSuggestions.tsx b/src/components/search/SearchSuggestions.tsx index a09016e412..c13659c60d 100644 --- a/src/components/search/SearchSuggestions.tsx +++ b/src/components/search/SearchSuggestions.tsx @@ -27,8 +27,7 @@ const SearchSuggestions: FunctionComponent = ({ serverId const [ suggestions, setSuggestions ] = useState([]); useEffect(() => { - // TODO: Remove type casting once we're using a properly typed API client - const apiClient = (ServerConnections as any).getApiClient(serverId); + const apiClient = ServerConnections.getApiClient(serverId); apiClient.getItems(apiClient.getCurrentUserId(), { SortBy: 'IsFavoriteOrLiked,Random',