mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2026-09-03 03:50:02 +03:00
use includes instead of indexOf
Co-authored-by: viown <48097677+viown@users.noreply.github.com>
This commit is contained in:
@@ -66,7 +66,7 @@ export const useSearchItems = (
|
||||
includeItemTypes: itemTypes,
|
||||
parentId,
|
||||
searchTerm,
|
||||
isMissing: itemTypes.indexOf(BaseItemKind.Episode) !== -1 && !user?.Configuration?.DisplayMissingEpisodes ? false : undefined,
|
||||
isMissing: itemTypes.includes(BaseItemKind.Episode) && !user?.Configuration?.DisplayMissingEpisodes ? false : undefined,
|
||||
limit: 800
|
||||
},
|
||||
{ signal }
|
||||
|
||||
Reference in New Issue
Block a user