Merge pull request #4890 from nielsvanvelzen/4888-fix-search-hints

Fix search hint endpoint error
This commit is contained in:
Joshua M. Boniface 2020-12-30 19:55:57 -05:00 committed by GitHub
commit 7caba04c3c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -47,7 +47,7 @@ namespace Emby.Server.Implementations.Library
if (query.Limit.HasValue)
{
results = results.GetRange(0, query.Limit.Value);
results = results.GetRange(0, Math.Min(query.Limit.Value, results.Count));
}
return new QueryResult<SearchHintInfo>